diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-01 14:14:51 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-23 09:19:51 +0200 |
| commit | 025756ee7b476241270dd8ccbe17cc4c473800fa (patch) | |
| tree | 0d58995c7e0768ccbc9ae25c62a7ff5178ee725a /tools/lib/python | |
| parent | e2f7f94b5a25ecfbb05df1437c5b46e848adc948 (diff) | |
| download | linux-next-025756ee7b476241270dd8ccbe17cc4c473800fa.tar.gz linux-next-025756ee7b476241270dd8ccbe17cc4c473800fa.zip | |
fs: port mnt_idmap() and file_mnt_idmap() to const mnt_idmap
Now that everything takes a mnt_idmap as const store a const pointer in
struct vfsmount, struct mount_kattr and struct kstatmount and return one
from mnt_idmap(), file_mnt_idmap() and ovl_upper_mnt_idmap(). Finally,
also make mnt_idmap_get() return a const pointer. Also convert the
remaining local variables that are initialized from the accessors.
alloc_mnt_idmap() keeps returning a non-const pointer. It is the only
place where an idmapping is actually written to.
Link: https://patch.msgid.link/20260901-work-idmap-const-v1-26-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
