public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Enable cached zone report
@ 2025-12-20  2:53 Damien Le Moal
  2025-12-20  2:53 ` [PATCH v3 1/6] libxfs: add missing forward declaration in xfs_zones.h Damien Le Moal
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Damien Le Moal @ 2025-12-20  2:53 UTC (permalink / raw)
  To: linux-xfs, Andrey Albershteyn
  Cc: Darrick J . Wong, Christoph Hellwig, Carlos Maiolino

Enable cached zone report to speed up mkfs and repair on a zoned block
device (e.g. an SMR disk). Cached zone report support was introduced in
the kernel with version 6.19-rc1.

Patch 1 and 2 are a couple of simple fixes/cleanups.
Patch 3 intorduces the new xfrog_report_zones() helper function, which
is used in patch 4 and 5 for mkfs and repair respectively.
Finally, patch 6 modifies xfrog_report_zones() to enable cached report
zones.

Changes from v2:
 - Complete rework of the series to make the zone reporting code common
   in libfrog
 - Added patch 1 and 2 as small cleanups/improvements.

Changes from v1:
 - Fix erroneous handling of ioctl(BLKREPORTZONEV2) error to correctly
   fallback to the regular ioctl(BLKREPORTZONE) if the kernel does not
   support BLKREPORTZONEV2.

Damien Le Moal (6):
  libxfs: add missing forward declaration in xfs_zones.h
  mkfs: remove unnecessary return value affectation
  libfrog: introduce xfrog_report_zones
  mkfs: use xfrog_report_zones()
  repair: use xfrog_report_zones()
  libfrog: enable cached report zones

 libfrog/Makefile   |  6 ++++--
 libfrog/zones.c    | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 libfrog/zones.h    | 22 ++++++++++++++++++++
 libxfs/xfs_zones.c |  3 ++-
 libxfs/xfs_zones.h |  1 +
 mkfs/xfs_mkfs.c    | 39 +++++++++--------------------------
 repair/zoned.c     | 29 ++++++++------------------
 7 files changed, 98 insertions(+), 53 deletions(-)
 create mode 100644 libfrog/zones.c
 create mode 100644 libfrog/zones.h

-- 
2.52.0


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

end of thread, other threads:[~2026-01-07  6:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-20  2:53 [PATCH v3 0/6] Enable cached zone report Damien Le Moal
2025-12-20  2:53 ` [PATCH v3 1/6] libxfs: add missing forward declaration in xfs_zones.h Damien Le Moal
2026-01-06 16:16   ` Darrick J. Wong
2026-01-07  6:20   ` Christoph Hellwig
2025-12-20  2:53 ` [PATCH v3 2/6] mkfs: remove unnecessary return value affectation Damien Le Moal
2026-01-06 16:17   ` Darrick J. Wong
2026-01-07  6:20   ` Christoph Hellwig
2025-12-20  2:53 ` [PATCH v3 3/6] libfrog: introduce xfrog_report_zones Damien Le Moal
2026-01-06 16:29   ` Darrick J. Wong
2025-12-20  2:53 ` [PATCH v3 4/6] mkfs: use xfrog_report_zones() Damien Le Moal
2026-01-06 16:31   ` Darrick J. Wong
2025-12-20  2:53 ` [PATCH v3 5/6] repair: " Damien Le Moal
2025-12-20  2:53 ` [PATCH v3 6/6] libfrog: enable cached report zones Damien Le Moal
2026-01-06 16:34   ` Darrick J. Wong
2026-01-07  6:22   ` Christoph Hellwig

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