public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* enable cached zone report v5
@ 2026-01-28  4:32 Christoph Hellwig
  2026-01-28  4:32 ` [PATCH 1/5] include blkzoned.h in platform_defs.h Christoph Hellwig
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Christoph Hellwig @ 2026-01-28  4:32 UTC (permalink / raw)
  To: Andrey Albershteyn
  Cc: Damien Le Moal, Darrick J . Wong, Carlos Maiolino, linux-xfs

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.

Note: I've taken this series over from Damien as he's busy and it need
it as a base for further work.

Changes from v4:
 - include blkzoned.h from platform_defs.h and add the missing bits
   there to avoid problems with newer kernel headers

Changes from v3:
 - reorder includes to not need the forward declaration in xfs_zones.h
 - use the libfrog/ for #include statements
 - fix the include guard in libfrog/zones.h
 - fix up i18n string mess
 - hide the new ioctl definition in libfrog/zones.c
 - don't add userspace includes to libxfs/xfs_zones.h
 - reuse the buffer for multiple report zone calls

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.



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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28  4:32 enable cached zone report v5 Christoph Hellwig
2026-01-28  4:32 ` [PATCH 1/5] include blkzoned.h in platform_defs.h Christoph Hellwig
2026-01-28  5:11   ` Darrick J. Wong
2026-01-28  5:58   ` Damien Le Moal
2026-01-28  4:32 ` [PATCH 2/5] xfs: use blkdev_report_zones_cached() Christoph Hellwig
2026-01-28  4:32 ` [PATCH 3/5] mkfs: remove unnecessary return value affectation Christoph Hellwig
2026-01-28  4:32 ` [PATCH 4/5] libfrog: lift common zone reporting code from mkfs and repair Christoph Hellwig
2026-01-28  5:09   ` Darrick J. Wong
2026-01-28  4:32 ` [PATCH 5/5] libfrog: enable cached report zones Christoph Hellwig
2026-01-28  5:10   ` 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