Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c0a6163 authored by Al Viro's avatar Al Viro
Browse files

unobfuscate follow_up() a bit

really convoluted test in there has grown up during struct mount
introduction; what it checks is that we'd reached the root of
mount tree.
parent de9b9422
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -722,7 +722,7 @@ int follow_up(struct path *path)

	br_read_lock(&vfsmount_lock);
	parent = mnt->mnt_parent;
	if (&parent->mnt == path->mnt) {
	if (parent == mnt) {
		br_read_unlock(&vfsmount_lock);
		return 0;
	}