From: Al Viro Date: Wed, 18 Jul 2012 13:32:50 +0000 (+0400) Subject: unobfuscate follow_up() a bit X-Git-Tag: MMI-PSA29.97-13-9~16195^2~62 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c0a6163688b8ca3f44029c7bdb3d91a865c878a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 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; }