linux/fs/jfs
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
..
acl.c fs: port ->set_acl() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
file.c fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
inode.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
ioctl.c fs: port ->fileattr_set() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
jfs_acl.h fs: port ->set_acl() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
jfs_btree.h
jfs_debug.c
jfs_debug.h
jfs_dinode.h jfs: define xtree root and page independently 2023-10-13 10:39:25 -05:00
jfs_discard.c jfs: Fix null-ptr-deref in jfs_ioc_trim 2025-04-03 09:11:42 -05:00
jfs_discard.h
jfs_dmap.c jfs: add dmapctl integrity check to prevent invalid operations 2026-03-11 10:57:52 -05:00
jfs_dmap.h
jfs_dtree.c jfs: replace __get_free_page() with kmalloc() 2026-05-27 15:12:23 +02:00
jfs_dtree.h jfs: add dtpage integrity check to prevent index/pointer overflows 2026-03-11 10:57:52 -05:00
jfs_extent.c jfs: add check read-only before txBeginAnon() call 2025-02-19 15:28:49 -06:00
jfs_extent.h
jfs_filsys.h jfs: convert jfs to use the new mount api 2024-10-08 14:41:53 +02:00
jfs_imap.c More robust data integrity checking and some fixes. 2026-04-15 19:29:18 -07:00
jfs_imap.h
jfs_incore.h jfs: Rename _inline to avoid conflict with clang's '-fms-extensions' 2025-10-29 16:22:21 -07:00
jfs_inode.c jfs: convert to new timestamp accessors 2023-10-18 14:08:23 +02:00
jfs_inode.h fs: port ->setattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
jfs_lock.h
jfs_logmgr.c jfs: hold LOG_LOCK on umount to avoid null-ptr-deref 2026-03-11 10:57:52 -05:00
jfs_logmgr.h jfs: hold LOG_LOCK on umount to avoid null-ptr-deref 2026-03-11 10:57:52 -05:00
jfs_metapage.c More robust data integrity checking and some fixes. 2026-04-15 19:29:18 -07:00
jfs_metapage.h jfs: Change metapage->page to metapage->folio 2024-05-27 20:37:06 -05:00
jfs_mount.c JFS: always load filesystem UUID during mount 2026-03-11 10:57:52 -05:00
jfs_superblock.h
jfs_txnmgr.c jfs: fix corrupted list in dbUpdatePMap 2026-03-11 10:57:52 -05:00
jfs_txnmgr.h
jfs_types.h
jfs_umount.c jfs: hold LOG_LOCK on umount to avoid null-ptr-deref 2026-03-11 10:57:52 -05:00
jfs_unicode.c
jfs_unicode.h fs/jfs: Use common ucs2 upper case table 2023-08-30 08:55:52 -05:00
jfs_xattr.h jfs: move jfs_xattr_handlers to .rodata 2023-10-09 16:24:19 +02:00
jfs_xtree.c jfs: jfs_xtree: replace XT_GETPAGE macro with xt_getpage() 2025-07-14 17:08:14 -05:00
jfs_xtree.h jfs: define xtree root and page independently 2023-10-13 10:39:25 -05:00
Kconfig 22 smb3/cifs client fixes and two related changes (for unicode mapping) 2023-08-30 21:01:40 -07:00
Makefile fs/jfs: Use common ucs2 upper case table 2023-08-30 08:55:52 -05:00
namei.c fs: port ->create() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
resize.c
super.c jfs: handle set_blocksize failures 2026-05-21 13:39:35 +02:00
symlink.c
xattr.c fs: port xattr to const mnt_idmap 2026-09-23 09:19:49 +02:00