projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1972580
)
Remove a further kludge from __do_follow_link()
author
David Howells
<
[email protected]
>
Fri, 14 Jan 2011 18:46:46 +0000
(18:46 +0000)
committer
Al Viro
<
[email protected]
>
Sun, 16 Jan 2011 01:07:46 +0000
(20:07 -0500)
Remove a further kludge from __do_follow_link() as it's no longer required with
the automount code.
This reverts the non-helper-function parts of
051d381259eb57d6074d02a6ba6e90e744f1a29f
, which breaks union mounts.
Reported-by:
[email protected]
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 61995fba4e21edbbc3b129ed494c077781d72d95..373852012713e11983223006a166634ebaa7e74e 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-800,12
+800,8
@@
__do_follow_link(const struct path *link, struct nameidata *nd, void **p)
touch_atime(link->mnt, dentry);
nd_set_link(nd, NULL);
- if (link->mnt != nd->path.mnt) {
- path_to_nameidata(link, nd);
- nd->inode = nd->path.dentry->d_inode;
- dget(dentry);
- }
- mntget(link->mnt);
+ if (link->mnt == nd->path.mnt)
+ mntget(link->mnt);
nd->last_type = LAST_BIND;
*p = dentry->d_inode->i_op->follow_link(dentry, nd);