projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de9b942
)
unobfuscate follow_up() a bit
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Jul 2012 13:32:50 +0000
(17:32 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 20:00:45 +0000
(
00:00
+0400)
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.
fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index
c14dfac
..
d4d15bb
100644
(file)
--- 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;
}