Remove a further kludge from __do_follow_link() as it's no longer retired with the automount code.
This reverts the non-helper-function parts of 051d381259eb57d6074d02a6ba6e90e744f1a29f, which breaks union mounts. Reported-by: vaur...@redhat.com Signed-off-by: David Howells <dhowe...@redhat.com> --- fs/namei.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index f6a5e74..c983c92 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -781,13 +781,8 @@ __do_follow_link(struct path *path, struct nameidata *nd, void **p) touch_atime(path->mnt, dentry); nd_set_link(nd, NULL); - if (path->mnt != nd->path.mnt) { - path_to_nameidata(path, nd); - nd->inode = nd->path.dentry->d_inode; - dget(dentry); - } - mntget(path->mnt); - + if (path->mnt == nd->path.mnt) + mntget(path->mnt); nd->last_type = LAST_BIND; *p = dentry->d_inode->i_op->follow_link(dentry, nd); error = PTR_ERR(*p); _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs