summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-01 14:14:43 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-23 09:19:50 +0200
commit7d0db72041b7415370ecd1e5260048ddd49e44d8 (patch)
tree57f8a52381147223dd9aa4cf6042cd814495b4e5 /tools/lib/python
parentad664d41535a5a8183b15a98ecfa948f5f88779f (diff)
downloadlinux-next-7d0db72041b7415370ecd1e5260048ddd49e44d8.tar.gz
linux-next-7d0db72041b7415370ecd1e5260048ddd49e44d8.zip
fs: port ->mknod() 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-18-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>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions