summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro2012-07-18 15:32:50 +0200
committerAl Viro2012-07-22 22:00:45 +0200
commit3c0a6163688b8ca3f44029c7bdb3d91a865c878a (patch)
tree2b851ad65356da182610d0cb0bff5b1b22824ae8 /fs/namei.c
parentext3: pass custom EOF to generic_file_llseek_size() (diff)
downloadkernel-qcow2-linux-3c0a6163688b8ca3f44029c7bdb3d91a865c878a.tar.gz
kernel-qcow2-linux-3c0a6163688b8ca3f44029c7bdb3d91a865c878a.tar.xz
kernel-qcow2-linux-3c0a6163688b8ca3f44029c7bdb3d91a865c878a.zip
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.
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index c14dfac83c2b..d4d15bbc8af7 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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;
}