]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: only log freed extents for the current RTG in zoned growfs
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Jun 2026 05:07:21 +0000 (07:07 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 Jun 2026 10:21:40 +0000 (12:21 +0200)
commit44cccefe65749821d9a13523c8b763bf1262ef73
tree6bb9dd38e8756a399c730c06f017d999094e87f1
parentae3692c7f440c1ff577aae1a51202415ec4a794b
xfs: only log freed extents for the current RTG in zoned growfs

Otherwise a power fail or crash during growfs could lead to an
elevated sb_rblocks counter.

Note that the step function is much simpler compared to the classic RT
allocator as zoned RT sections must be aligned to real time group
boundaries.

Fixes: 01b71e64bb87 ("xfs: support growfs on zoned file systems")
Cc: <stable@vger.kernel.org> # v6.15
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c