]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: adjust the incore perag block_count when shrinking
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Nov 2023 12:27:44 +0000 (13:27 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 16 Nov 2023 09:41:17 +0000 (10:41 +0100)
commit38d34b01d14597745e5d939b425048a3a10e16ed
tree5cece7165ebec68c7ad0003689b04e714bb948c1
parentfaea09b8baa9efff7ce896f8ef5017575ef3994c
xfs: adjust the incore perag block_count when shrinking

Source kernel commit: 6868b8505c807ad9397d78cc4e07cb1cb3582152

If we reduce the number of blocks in an AG, we must update the incore
geometry values as well.

Fixes: 0800169e3e2c9 ("xfs: Pre-calculate per-AG agbno geometry")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ag.c