diff options
author | Christian Brauner <brauner@kernel.org> | 2024-06-27 16:11:41 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-06-28 10:37:29 +0200 |
commit | 460695a294e63de4e4f30ad1679ffddeec932bb8 (patch) | |
tree | 3b0e1b8c5feb8657a131084c93b9fc155f0b8137 /fs/internal.h | |
parent | 85e4daaeb70bc68ec920e0c268eb428113d31b21 (diff) |
nsfs: add open_namespace()
and call it from open_related_ns().
Link: https://lore.kernel.org/r/20240627-work-pidfs-v1-3-7e9ab6cc3bb1@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h index ab2225136f60..24346cf765dd 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -17,6 +17,7 @@ struct fs_context; struct pipe_inode_info; struct iov_iter; struct mnt_idmap; +struct ns_common; /* * block/bdev.c @@ -321,3 +322,4 @@ struct stashed_operations { int path_from_stashed(struct dentry **stashed, struct vfsmount *mnt, void *data, struct path *path); void stashed_dentry_prune(struct dentry *dentry); +int open_namespace(struct ns_common *ns); |