Skip to content

Commit 9de45fa

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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>
1 parent 62c8998 commit 9de45fa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

fs/xfs/xfs_zone_info.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ xfs_zoned_show_stats(
9595
seq_printf(m, "\tfree zones: %d\n", atomic_read(&zi->zi_nr_free_zones));
9696

9797
spin_lock(&zi->zi_open_zones_lock);
98-
seq_printf(m, "\tnumber of open zones: %u / %u\n",
99-
zi->zi_nr_open_zones, mp->m_max_open_zones);
98+
seq_printf(m, "\tmax open zones: %u\n",
99+
mp->m_max_open_zones);
100+
seq_printf(m, "\tnr open zones: %u\n",
101+
zi->zi_nr_open_zones);
102+
seq_printf(m, "\tnr open GC zones: %u\n",
103+
zi->zi_nr_open_gc_zones);
100104
seq_puts(m, "\topen zones:\n");
101105
list_for_each_entry(oz, &zi->zi_open_zones, oz_entry)
102106
xfs_show_open_zone(m, oz);

0 commit comments

Comments
 (0)