linux/fs/vboxsf
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
..
dir.c fs: port ->create() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
file.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
Kconfig vbox: Enable VBOXGUEST and VBOXSF_FS on ARM64 2025-01-07 15:57:23 +01:00
Makefile
shfl_hostintf.h vboxsf: Use flexible arrays for trailing string member 2023-07-26 14:55:35 -07:00
super.c vboxsf: Implement fileattr_get for case sensitivity 2026-05-11 16:50:29 +02:00
utils.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
vboxsf_wrappers.c fs: vboxsf: fix a kernel-doc warning 2023-12-08 15:32:31 -07:00
vfsmod.h fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00