diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-01-11 22:52:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-03-13 21:08:17 -0400 |
commit | 161aff1d93abf0e5b5e9dbca88928998c155f677 (patch) | |
tree | 89d39d7e332ca69cd7b88026a406009fe0b210b9 /fs/autofs | |
parent | cbae4d12eeee6b002a1252c4c45213651e8f4b55 (diff) | |
download | linux-stable-161aff1d93abf0e5b5e9dbca88928998c155f677.tar.gz linux-stable-161aff1d93abf0e5b5e9dbca88928998c155f677.tar.bz2 linux-stable-161aff1d93abf0e5b5e9dbca88928998c155f677.zip |
LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()
New LOOKUP flag, telling path_lookupat() to act as path_mountpointat().
IOW, traverse mounts at the final point and skip revalidation of the
location where it ends up.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs')
-rw-r--r-- | fs/autofs/dev-ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs/dev-ioctl.c b/fs/autofs/dev-ioctl.c index a3cdb0036c5d..f3a0f412b43b 100644 --- a/fs/autofs/dev-ioctl.c +++ b/fs/autofs/dev-ioctl.c @@ -186,7 +186,7 @@ static int find_autofs_mount(const char *pathname, struct path path; int err; - err = kern_path_mountpoint(AT_FDCWD, pathname, &path, 0); + err = kern_path(pathname, LOOKUP_MOUNTPOINT, &path); if (err) return err; err = -ENOENT; @@ -519,8 +519,8 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp, if (!fp || param->ioctlfd == -1) { if (autofs_type_any(type)) - err = kern_path_mountpoint(AT_FDCWD, - name, &path, LOOKUP_FOLLOW); + err = kern_path(name, LOOKUP_FOLLOW | LOOKUP_MOUNTPOINT, + &path); else err = find_autofs_mount(name, &path, test_by_type, &type); |