projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index c14dfac83c2bf1c8dc98f3ea21f9f3917e680555..d4d15bbc8af776f3290fb138c7856e8e3ae19b45 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;
}