]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: add an icount_read helper
authorJosef Bacik <josef@toxicpanda.com>
Tue, 26 Aug 2025 15:39:02 +0000 (11:39 -0400)
committerChristian Brauner <brauner@kernel.org>
Mon, 1 Sep 2025 10:41:09 +0000 (12:41 +0200)
commit37b27bd5d6217b75d315f28b4399aad0a336f299
treee72e871a9c7120da2f8849523eca1cfb31f851ea
parent9e70e985bdc2c6fe7a160e4d59ddd7c0a39bc077
fs: add an icount_read helper

Instead of doing direct access to ->i_count, add a helper to handle
this. This will make it easier to convert i_count to a refcount later.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/9bc62a84c6b9d6337781203f60837bd98fbc4a96.1756222464.git.josef@toxicpanda.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
16 files changed:
arch/powerpc/platforms/cell/spufs/file.c
fs/btrfs/inode.c
fs/ceph/mds_client.c
fs/ext4/ialloc.c
fs/fs-writeback.c
fs/hpfs/inode.c
fs/inode.c
fs/nfs/inode.c
fs/notify/fsnotify.c
fs/smb/client/inode.c
fs/ubifs/super.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_trace.h
include/linux/fs.h
include/trace/events/filelock.h
security/landlock/fs.c