linux/fs/f2fs
Christian Brauner 0dbe12f2e4
fs: port i_{g,u}id_{needs_}update() to 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:29 +01:00
..
acl.c fs: port privilege checking helpers to mnt_idmap 2023-01-19 09:24:29 +01:00
acl.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
checkpoint.c f2fs: fix return val in f2fs_start_ckpt_thread() 2022-11-01 17:56:04 -07:00
compress.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
data.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
debug.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
dir.c f2fs: change type for 'sbi->readdir_ra' 2022-11-28 12:46:33 -08:00
extent_cache.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
f2fs.h fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
file.c fs: port i_{g,u}id_{needs_}update() to mnt_idmap 2023-01-19 09:24:29 +01:00
gc.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
gc.h f2fs: remove redundant code for gc condition 2022-07-30 20:16:20 -07:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
inode.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
iostat.c f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
iostat.h f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
Kconfig
Makefile
namei.c fs: port inode_init_owner() to mnt_idmap 2023-01-19 09:24:28 +01:00
node.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
node.h f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
recovery.c quota: port to mnt_idmap 2023-01-19 09:24:29 +01:00
segment.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
segment.h f2fs: remove struct segment_allocation default_salloc_ops 2022-12-08 09:32:10 -08:00
shrinker.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
super.c f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super() 2022-12-12 14:59:38 -08:00
sysfs.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
verity.c - Alistair Popple has a series which addresses a race which causes page 2022-10-14 12:28:43 -07:00
xattr.c fs: port inode_owner_or_capable() to mnt_idmap 2023-01-19 09:24:29 +01:00
xattr.h