summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_zone_alloc.h
diff options
context:
space:
mode:
authorHans Holmberg <hans.holmberg@wdc.com>2024-11-30 05:53:49 +0100
committerChristoph Hellwig <hch@lst.de>2025-03-03 08:17:10 -0700
commit5443041b9c6308db91f58eaf401d8f7f81874b74 (patch)
tree30dc28e7b33ba91924f016876624f869c1795d3d /fs/xfs/xfs_zone_alloc.h
parent099bf44f9c90184d5a0439d00ed2d965d786dfea (diff)
xfs: export zone stats in /proc/*/mountstats
Add the per-zone life time hint and the used block distribution for fully written zones, grouping reclaimable zones in fixed-percentage buckets spanning 0..9%, 10..19% and full zones as 100% used as well as a few statistics about the zone allocator and open and reclaimable zones in /proc/*/mountstats. This gives good insight into data fragmentation and data placement success rate. Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com> Co-developed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_zone_alloc.h')
-rw-r--r--fs/xfs/xfs_zone_alloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_zone_alloc.h b/fs/xfs/xfs_zone_alloc.h
index 1269390bfcda..ecf39106704c 100644
--- a/fs/xfs/xfs_zone_alloc.h
+++ b/fs/xfs/xfs_zone_alloc.h
@@ -44,6 +44,7 @@ void xfs_mark_rtg_boundary(struct iomap_ioend *ioend);
uint64_t xfs_zoned_default_resblks(struct xfs_mount *mp,
enum xfs_free_counter ctr);
+void xfs_zoned_show_stats(struct seq_file *m, struct xfs_mount *mp);
#ifdef CONFIG_XFS_RT
int xfs_mount_zones(struct xfs_mount *mp);