Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87556ef1 authored by David Howells's avatar David Howells Committed by Al Viro
Browse files

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
051d3812, which breaks union mounts.

Reported-by: default avatar <vaurora@redhat.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1972580b
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -800,11 +800,7 @@ __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);
	}
	if (link->mnt == nd->path.mnt)
		mntget(link->mnt);

	nd->last_type = LAST_BIND;