public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* refactor zone reporting v2
@ 2026-01-14  6:53 Christoph Hellwig
  2026-01-14  6:53 ` [PATCH 1/6] xfs: add missing forward declaration in xfs_zones.h Christoph Hellwig
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Christoph Hellwig @ 2026-01-14  6:53 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: Damien Le Moal, Darrick J. Wong, linux-xfs

Hi all,

this series refactor the zone reporting code so that it is more
clearly split between sanity checking the report hardware zone
information, and the XFS zoned RT information.  This reduced the
code size and removes an iteration over all RTGs at boot time.

It will also allow to do smarter checking of hardware zones and
RTG allocation information in repair once ported to userspace.

I've also included Damien's xfsprogs patch to make xfs_zones.h
compile better standalone as it touches the same area.

Changes since v1:
 - merge two functions in the final version to be a little less
   confusing
 - rename one of those functions which later goes away
 - expand a comment a bit
 - rename the libxfs zone validation to make it more clear it is
   all about the blk_zone

Diffstat:
 libxfs/xfs_rtgroup.h |   15 ++++
 libxfs/xfs_zones.c   |  149 +++++++++++---------------------------------
 libxfs/xfs_zones.h   |    6 +
 xfs_zone_alloc.c     |  171 +++++++++++++++++++++++++++++----------------------
 4 files changed, 156 insertions(+), 185 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread
* refactor zone reporting
@ 2026-01-09 17:20 Christoph Hellwig
  2026-01-09 17:20 ` [PATCH 5/6] xfs: check that used blocks are smaller than the write pointer Christoph Hellwig
  0 siblings, 1 reply; 18+ messages in thread
From: Christoph Hellwig @ 2026-01-09 17:20 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: Damien Le Moal, linux-xfs

Hi all,

this series refactor the zone reporting code so that it is more
clearly split between sanity checking the report hardware zone
information, and the XFS zoned RT information.  This reduced the
code size and removes an iteration over all RTGs at boot time.

It will also allow to do smarter checking of hardware zones and
RTG allocation information in repair once ported to userspace.

I've also included Damien's xfsprogs patch to make xfs_zones.h
compile better standalone as it touches the same area.

Diffstat:
 libxfs/xfs_rtgroup.h |   15 ++++
 libxfs/xfs_zones.c   |  142 ++++++++++--------------------------------
 libxfs/xfs_zones.h   |    6 +
 xfs_zone_alloc.c     |  171 +++++++++++++++++++++++++++++----------------------
 4 files changed, 152 insertions(+), 182 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-01-21 12:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14  6:53 refactor zone reporting v2 Christoph Hellwig
2026-01-14  6:53 ` [PATCH 1/6] xfs: add missing forward declaration in xfs_zones.h Christoph Hellwig
2026-01-16 14:03   ` Carlos Maiolino
2026-01-14  6:53 ` [PATCH 2/6] xfs: add a xfs_rtgroup_raw_size helper Christoph Hellwig
2026-01-14  9:56   ` Damien Le Moal
2026-01-16 14:04   ` Carlos Maiolino
2026-01-14  6:53 ` [PATCH 3/6] xfs: pass the write pointer to xfs_init_zone Christoph Hellwig
2026-01-14 10:00   ` Damien Le Moal
2026-01-16 14:16   ` Carlos Maiolino
2026-01-14  6:53 ` [PATCH 4/6] xfs: split and refactor zone validation Christoph Hellwig
2026-01-14 10:04   ` Damien Le Moal
2026-01-14  6:53 ` [PATCH 5/6] xfs: check that used blocks are smaller than the write pointer Christoph Hellwig
2026-01-14 10:05   ` Damien Le Moal
2026-01-14  6:53 ` [PATCH 6/6] xfs: use blkdev_get_zone_info to simplify zone reporting Christoph Hellwig
2026-01-14 10:07   ` Damien Le Moal
2026-01-21 12:24 ` refactor zone reporting v2 Carlos Maiolino
  -- strict thread matches above, loose matches on Subject: below --
2026-01-09 17:20 refactor zone reporting Christoph Hellwig
2026-01-09 17:20 ` [PATCH 5/6] xfs: check that used blocks are smaller than the write pointer Christoph Hellwig
2026-01-10  1:25   ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox