commit | 3c0a6163688b8ca3f44029c7bdb3d91a865c878a | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Jul 18 17:32:50 2012 +0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Jul 23 00:00:45 2012 +0400 |
tree | 2b851ad65356da182610d0cb0bff5b1b22824ae8 | |
parent | de9b9422026357c878a9fa3714936be0e1388e9c [diff] |
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.
diff --git a/fs/namei.c b/fs/namei.c index c14dfac..d4d15bb 100644 --- a/fs/namei.c +++ b/fs/namei.c
@@ -722,7 +722,7 @@ br_read_lock(&vfsmount_lock); parent = mnt->mnt_parent; - if (&parent->mnt == path->mnt) { + if (parent == mnt) { br_read_unlock(&vfsmount_lock); return 0; }