linux-stable/fs/ceph
Christian Brauner 13e83a4923
fs: port ->set_acl() 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:27 +01:00
..
acl.c fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
addr.c A fix to facilitate prompt cap releases on async creates from Xiubo. 2022-12-14 10:35:47 -08:00
cache.c
cache.h
caps.c ceph: try to check caps immediately after async creating finishes 2022-12-12 19:15:39 +01:00
ceph_frag.c
debugfs.c
dir.c fs: port ->rename() to pass mnt_idmap 2023-01-19 09:24:26 +01:00
export.c
file.c A fix to facilitate prompt cap releases on async creates from Xiubo. 2022-12-14 10:35:47 -08:00
inode.c fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
io.c
io.h
ioctl.c ceph: remove useless session parameter for check_caps() 2022-12-12 19:15:39 +01:00
ioctl.h
Kconfig
locks.c ceph: use locks_inode_context helper 2022-11-30 05:08:10 -05:00
Makefile
mds_client.c
mds_client.h
mdsmap.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
metric.c
metric.h
quota.c
snap.c ceph: avoid putting the realm twice when decoding snaps fails 2022-11-14 10:29:05 +01:00
strings.c
super.c
super.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
util.c
xattr.c