summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-01 14:14:50 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-23 09:19:51 +0200
commite2f7f94b5a25ecfbb05df1437c5b46e848adc948 (patch)
treeafc594229fa7542f7bb72c7cb78a1d6722f13aac /tools/lib/python
parente2f0d6d4569d14609644c45b029e23428069175b (diff)
downloadlinux-next-e2f7f94b5a25ecfbb05df1437c5b46e848adc948.tar.gz
linux-next-e2f7f94b5a25ecfbb05df1437c5b46e848adc948.zip
fs: port vfs_*() helpers to 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-25-54ccd48e100b@kernel.org Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Seth Forshee <sforshee@kernel.org> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions