linux/fs/coda
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
..
cache.c coda_flag_children(): fix a UAF 2026-04-04 21:03:13 -04:00
cnode.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
coda_cache.h
coda_fs_i.h
coda_int.h
coda_linux.c coda: convert to new timestamp accessors 2023-10-18 13:26:19 +02:00
coda_linux.h fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
coda_psdev.h
dir.c fs: port ->create() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
file.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
inode.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
Kconfig docs: filesystems: convert coda.txt to ReST 2020-05-05 09:22:21 -06:00
Makefile
pioctl.c fs: port ->permission() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
psdev.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
symlink.c coda: Convert coda_symlink_filler() to use folio_end_read() 2024-05-31 12:31:39 +02:00
sysctl.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
upcall.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00