diff options
author | Richard Weinberger <richard@nod.at> | 2022-12-07 09:43:08 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-02-20 09:20:08 -0500 |
commit | e1f19857f94be09f9526f180e64f20138bd4e394 (patch) | |
tree | 00fcaade62f6251c0a2324b4e4489459fa6a9848 /include/linux/namei.h | |
parent | 50f5fdaea9cd6941e51ea6e07d8c15265917bb86 (diff) | |
download | linux-e1f19857f94be09f9526f180e64f20138bd4e394.tar.gz linux-e1f19857f94be09f9526f180e64f20138bd4e394.tar.bz2 linux-e1f19857f94be09f9526f180e64f20138bd4e394.zip |
fs: namei: Allow follow_down() to uncover auto mounts
This function is only used by NFSD to cross mount points.
If a mount point is of type auto mount, follow_down() will
not uncover it. Add LOOKUP_AUTOMOUNT to the lookup flags
to have ->d_automount() called when NFSD walks down the
mount tree.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Ian Kent <raven@themaw.net>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/namei.h')
-rw-r--r-- | include/linux/namei.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index 00fee52df842..c82e2ac65846 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -77,7 +77,7 @@ struct dentry *lookup_one_positive_unlocked(struct user_namespace *mnt_userns, struct dentry *base, int len); extern int follow_down_one(struct path *); -extern int follow_down(struct path *); +extern int follow_down(struct path *path, unsigned int flags); extern int follow_up(struct path *); extern struct dentry *lock_rename(struct dentry *, struct dentry *); |