From: Christoph Hellwig Date: Mon, 14 Apr 2025 05:35:58 +0000 (+0200) Subject: xfs: disable sb_frextents for zoned file systems X-Git-Tag: v6.15.0~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=554360cdc6e2dc59379e80082e793f543f84b7ec;p=thirdparty%2Fxfsprogs-dev.git xfs: disable sb_frextents for zoned file systems Source kernel commit: 1d319ac6fe1bd6364c5fc6e285ac47b117aed117 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 Reviewed-by: Darrick J. Wong Signed-off-by: Christoph Hellwig --- diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 8344b40e..8df99e51 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -1330,7 +1330,7 @@ xfs_log_sb( * we handle nearly-lockless reservations, so we must use the _positive * variant here to avoid writing out nonsense frextents. */ - if (xfs_has_rtgroups(mp)) { + if (xfs_has_rtgroups(mp) && !xfs_has_zoned(mp)) { mp->m_sb.sb_frextents = xfs_sum_freecounter(mp, XC_FREE_RTEXTENTS); }