diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-03-31 18:27:31 +0300 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-04-07 14:28:47 +0300 |
| commit | 9de45faed34d11f1821c386ea306d9788e9a6448 (patch) | |
| tree | 6ddc9cd4540707e0d75cdc56dac74fcb0bd24765 | |
| parent | 62c89988dc198efc17be0119a43ad21cf32334d6 (diff) | |
| download | linux-9de45faed34d11f1821c386ea306d9788e9a6448.tar.xz | |
xfs: untangle the open zones reporting in mountinfo
Keeping a value per line makes parsing much easier, so move the maximum
number of open zones into a separate line, and also add a new line for
the number of open open GC zones. While that has to be either 0 or 1
currently having a value future-proofs the interface for adding more open
GC zones if needed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
| -rw-r--r-- | fs/xfs/xfs_zone_info.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/xfs/xfs_zone_info.c b/fs/xfs/xfs_zone_info.c index dcdc1dd206b2..47b475e21af8 100644 --- a/fs/xfs/xfs_zone_info.c +++ b/fs/xfs/xfs_zone_info.c @@ -95,8 +95,12 @@ xfs_zoned_show_stats( seq_printf(m, "\tfree zones: %d\n", atomic_read(&zi->zi_nr_free_zones)); spin_lock(&zi->zi_open_zones_lock); - seq_printf(m, "\tnumber of open zones: %u / %u\n", - zi->zi_nr_open_zones, mp->m_max_open_zones); + seq_printf(m, "\tmax open zones: %u\n", + mp->m_max_open_zones); + seq_printf(m, "\tnr open zones: %u\n", + zi->zi_nr_open_zones); + seq_printf(m, "\tnr open GC zones: %u\n", + zi->zi_nr_open_gc_zones); seq_puts(m, "\topen zones:\n"); list_for_each_entry(oz, &zi->zi_open_zones, oz_entry) xfs_show_open_zone(m, oz); |
