linux/fs/autofs4
Ian Kent 6035974147 autofs: use path_has_submounts() to fix unreliable have_submount() checks
If an automount mount is clone(2)ed into a file system that is propagation
private, when it later expires in the originating namespace, subsequent
calls to autofs ->d_automount() for that dentry in the original namespace
will return ELOOP until the mount is umounted in the cloned namespace.

Now that a struct path is available where needed use path_has_submounts()
instead of have_submounts() so we don't get false positives when checking
if a dentry is a mount point or contains mounts in the current namespace.

Link: http://lkml.kernel.org/r/20161011053423.27645.91233.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-12-03 20:51:49 -05:00
..
autofs_i.h autofs: change autofs4_wait() to take struct path 2016-12-03 20:51:48 -05:00
dev-ioctl.c autofs: use path_has_submounts() to fix unreliable have_submount() checks 2016-12-03 20:51:49 -05:00
expire.c autofs: change autofs4_wait() to take struct path 2016-12-03 20:51:48 -05:00
init.c autofs4: coding style fixes 2016-03-15 16:55:16 -07:00
inode.c autofs: use autofs4_free_ino() to kfree dentry data 2016-10-11 15:06:31 -07:00
Kconfig fs/Kconfig: move autofs, autofs4 out 2009-01-22 13:15:54 +03:00
Makefile autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
root.c autofs: use path_has_submounts() to fix unreliable have_submount() checks 2016-12-03 20:51:49 -05:00
symlink.c autofs4: coding style fixes 2016-03-15 16:55:16 -07:00
waitq.c autofs: use path_has_submounts() to fix unreliable have_submount() checks 2016-12-03 20:51:49 -05:00