mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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.
This commit is contained in:
parent
de9b942202
commit
3c0a616368
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user