linux-stable/fs/9p
Christian Brauner c54bd91e9e
fs: port ->mkdir() to pass mnt_idmap
Convert to struct mnt_idmap.

Last cycle we merged the necessary infrastructure in
256c8aed2b ("fs: introduce dedicated idmap type for mounts").
This is just the conversion to struct mnt_idmap.

Currently we still pass around the plain namespace that was attached to a
mount. This is in general pretty convenient but it makes it easy to
conflate namespaces that are relevant on the filesystem with namespaces
that are relevent on the mount level. Especially for non-vfs developers
without detailed knowledge in this area this can be a potential source for
bugs.

Once the conversion to struct mnt_idmap is done all helpers down to the
really low-level helpers will take a struct mnt_idmap argument instead of
two namespace arguments. This way it becomes impossible to conflate the two
eliminating the possibility of any bugs. All of the vfs and all filesystems
only operate on struct mnt_idmap.

Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
2023-01-19 09:24:26 +01:00
..
acl.c fs: port ->setattr() to pass mnt_idmap 2023-01-19 09:24:02 +01:00
acl.h 9p: implement set acl method 2022-10-20 10:13:28 +02:00
cache.c netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context 2022-06-09 13:55:00 -07:00
cache.h
fid.c 9p/fs: Remove unneeded idr.h #include 2022-12-02 23:59:15 +09:00
fid.h 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
Kconfig
Makefile
v9fs.c 9p/fs: Remove unneeded idr.h #include 2022-12-02 23:59:15 +09:00
v9fs.h netfs: Further cleanups after struct netfs_inode wrapper introduced 2022-06-10 20:55:21 +01:00
v9fs_vfs.h fs: port ->setattr() to pass mnt_idmap 2023-01-19 09:24:02 +01:00
vfs_addr.c 9p-for-6.2-rc1 2022-12-23 11:39:18 -08:00
vfs_dentry.c 9p/fs: Remove unneeded idr.h #include 2022-12-02 23:59:15 +09:00
vfs_dir.c 9p-for-6.2-rc1 2022-12-23 11:39:18 -08:00
vfs_file.c 9p/fs: Remove unneeded idr.h #include 2022-12-02 23:59:15 +09:00
vfs_inode.c fs: port ->mkdir() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
vfs_inode_dotl.c fs: port ->mkdir() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
vfs_super.c 9p/fs: Remove unneeded idr.h #include 2022-12-02 23:59:15 +09:00
xattr.c fs.acl.rework.v6.2 2022-12-12 18:46:39 -08:00
xattr.h 9p: use stub posix acl handlers 2022-10-20 10:13:32 +02:00