linux/fs/hpfs
Christian Brauner e2f0d6d456
fs: port ->setattr() to pass const mnt_idmap
Convert to const struct mnt_idmap.

A mount's idmapping is immutable. The only thing that is allowed to be
modified afterwards is the reference count and that is hidden behind
mnt_idmap_get() and mnt_idmap_put(). Everything else only ever reads
from the idmapping. This is the same model that struct cred uses and the
idmapping is also rather sensitive.

So make the idmap argument const wherever we can. The conversion is done
from the bottom up so callers can continue to pass a non-const pointer
to a const parameter until the conversion is finished.

No functional changes.

Link: https://patch.msgid.link/20260901-work-idmap-const-v1-24-54ccd48e100b@kernel.org
Acked-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Seth Forshee <sforshee@kernel.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-09-23 09:19:51 +02:00
..
alloc.c hpfs: fix a crash if hpfs_map_dnode_bitmap fails 2026-05-25 14:48:58 +02:00
anode.c fs: hpfs: Avoid multiple -Wflex-array-member-not-at-end warnings 2025-09-08 16:28:38 +02:00
buffer.c
dentry.c
dir.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
dnode.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
ea.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
file.c hpfs: convert iomap ops to ->iomap_next() 2026-07-31 12:28:51 +02:00
hpfs_fn.h fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
hpfs.h fs: hpfs: Avoid multiple -Wflex-array-member-not-at-end warnings 2025-09-08 16:28:38 +02:00
inode.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
map.c fs: hpfs: Avoid multiple -Wflex-array-member-not-at-end warnings 2025-09-08 16:28:38 +02:00
name.c
namei.c fs: port ->create() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
super.c hpfs: handle set_blocksize failures 2026-05-21 13:39:35 +02:00