]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: remove metafile inodes from the active inode stat
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2026 14:14:32 +0000 (15:14 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 25 Feb 2026 12:58:48 +0000 (13:58 +0100)
commit47553dd60b1da88df2354f841a4f71dd4de6478a
tree2eaeab44ca2fdfc55a214ccfd3951f28425b866a
parent03a6d6c4c85d2758534638fb2bb5f72e0f8877d0
xfs: remove metafile inodes from the active inode stat

The active inode (or active vnode until recently) stat can get much larger
than expected on file systems with a lot of metafile inodes like zoned
file systems on SMR hard disks with 10.000s of rtg rmap inodes.

Remove all metafile inodes from the active counter to make it more useful
to track actual workloads and add a separate counter for active metafile
inodes.

This fixes xfs/177 on SMR hard drives.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_metafile.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_stats.c
fs/xfs/xfs_stats.h