unobfuscate follow_up() a bit
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Jul 2012 13:32:50 +0000 (17:32 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 20:00:45 +0000 (00:00 +0400)
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.

fs/namei.c

index c14dfac83c2bf1c8dc98f3ea21f9f3917e680555..d4d15bbc8af776f3290fb138c7856e8e3ae19b45 100644 (file)
@@ -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;
        }