xfs: disable sb_frextents for zoned file systems
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Feb 2025 04:47:15 +0000 (05:47 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:45 +0000 (08:16 -0700)
commit1d319ac6fe1bd6364c5fc6e285ac47b117aed117
treeaf4cb5bf0bafae94ae1f5dd5df5933429e6eef2d
parent1fd8159e7ca41203798b6f65efaf1724eb318cd4
xfs: disable sb_frextents for zoned file systems

Zoned file systems not only don't use the global frextents counter, but
for them the in-memory percpu counter also includes reservations taken
before even allocating delalloc extent records, so it will never match
the per-zone used information.  Disable all updates and verification of
the sb counter for zoned file systems as it isn't useful for them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/scrub/fscounters.c
fs/xfs/scrub/fscounters_repair.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_super.c