Remove a further kludge from __do_follow_link()
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
051d381259
, which breaks union mounts.
Reported-by: vaurora@redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -800,11 +800,7 @@ __do_follow_link(const struct path *link, struct nameidata *nd, void **p)
|
|||||||
touch_atime(link->mnt, dentry);
|
touch_atime(link->mnt, dentry);
|
||||||
nd_set_link(nd, NULL);
|
nd_set_link(nd, NULL);
|
||||||
|
|
||||||
if (link->mnt != nd->path.mnt) {
|
if (link->mnt == nd->path.mnt)
|
||||||
path_to_nameidata(link, nd);
|
|
||||||
nd->inode = nd->path.dentry->d_inode;
|
|
||||||
dget(dentry);
|
|
||||||
}
|
|
||||||
mntget(link->mnt);
|
mntget(link->mnt);
|
||||||
|
|
||||||
nd->last_type = LAST_BIND;
|
nd->last_type = LAST_BIND;
|
||||||
|
Reference in New Issue
Block a user