]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: add sysfs stats for zoned GC
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Jan 2026 05:19:26 +0000 (06:19 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 30 Jan 2026 09:41:42 +0000 (10:41 +0100)
commite33839b514a8af27ba03f9f2a414d154aa980320
tree49af05a827d86ac1d00d96af5e6103a5c5573abd
parentedf6078212c366459d3c70833290579b200128b1
xfs: add sysfs stats for zoned GC

Add counters of read, write and zone_reset operations as well as
GC written bytes to sysfs.  This way they can be easily used for
monitoring tools and test cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_stats.c
fs/xfs/xfs_stats.h
fs/xfs/xfs_zone_gc.c