mirror-linux/fs/ubifs
Jeff Layton 0b2600f81c
treewide: change inode->i_ino from unsigned long to u64
On 32-bit architectures, unsigned long is only 32 bits wide, which
causes 64-bit inode numbers to be silently truncated. Several
filesystems (NFS, XFS, BTRFS, etc.) can generate inode numbers that
exceed 32 bits, and this truncation can lead to inode number collisions
and other subtle bugs on 32-bit systems.

Change the type of inode->i_ino from unsigned long to u64 to ensure that
inode numbers are always represented as 64-bit values regardless of
architecture. Update all format specifiers treewide from %lu/%lx to
%llu/%llx to match the new type, along with corresponding local variable
types.

This is the bulk treewide conversion. Earlier patches in this series
handled trace events separately to allow trace field reordering for
better struct packing on 32-bit.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260304-iino-u64-v3-12-2257ad83d372@kernel.org
Acked-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-03-06 14:31:28 +01:00
..
Kconfig
Makefile ubifs: Export filesystem error counters 2021-12-23 20:23:42 +01:00
auth.c ubifs: auth.c: fix kernel-doc function prototype warning 2024-01-05 16:34:39 +01:00
budget.c ubifs: Reserve one leb for each journal head while doing budget 2023-02-02 21:13:40 +01:00
commit.c ubifs: Check @c->dirty_[n|p]n_cnt and @c->nroot state under @c->lp_mutex 2024-01-05 17:03:41 +01:00
compress.c ubifs: Use ACOMP_REQUEST_CLONE 2025-04-16 15:16:20 +08:00
crypto.c ubifs: move crypt info pointer to fs-specific part of inode 2025-08-21 13:58:07 +02:00
debug.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
debug.h ubifs: correct UBIFS_DFS_DIR_LEN macro definition and improve code clarity 2024-07-12 21:52:24 +02:00
dir.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
file.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
find.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
gc.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
io.c ubifs: Simplify the code using ubifs_crc_node 2025-11-28 21:40:23 +01:00
ioctl.c tree-wide: s/struct fileattr/struct file_kattr/g 2025-07-04 16:14:39 +02:00
journal.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
key.h
log.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
lprops.c ubifs: fix kernel-doc warnings 2024-07-12 21:53:35 +02:00
lpt.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lpt_commit.c ubifs: dump_lpt_leb: remove return at end of void function 2025-01-18 15:26:40 +01:00
master.c ubifs: add check for crypto_shash_tfm_digest 2024-07-12 22:01:09 +02:00
misc.c
misc.h
orphan.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
recovery.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
replay.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sb.c ubifs: Default to zstd compression 2021-04-15 22:00:26 +02:00
scan.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
shrinker.c
super.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
sysfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tnc.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00
tnc_commit.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
tnc_misc.c ubifs: Remove unnecessary variable assignments 2025-11-28 21:41:52 +01:00
ubifs-media.h
ubifs.h fs: refactor ->update_time handling 2026-01-12 14:01:32 +01:00
xattr.c treewide: change inode->i_ino from unsigned long to u64 2026-03-06 14:31:28 +01:00