Skip to content

Commit

Permalink
unobfuscate follow_up() a bit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Al Viro committed Jul 22, 2012
1 parent de9b942 commit 3c0a616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3c0a616

Please sign in to comment.