]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: factor out a xfs_growfs_rt_bmblock helper
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:57 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commit7996f10ce6cc6a9f4c49368209ab74631c765bbf
treee43844af75f703a5e5177b059d4fac552a89745d
parentc8e5a0bfe0086d4b99f95d98a946ebc9a56ecf20
xfs: factor out a xfs_growfs_rt_bmblock helper

Add a helper to contain the per-rtbitmap block logic in xfs_growfs_rt.

Note that this helper now allocates a new fake mount structure for
each rtbitmap block iteration instead of reusing the memory for an
entire growfs call.  Compared to all the other work done when freeing
the blocks the overhead for this is in the noise and it keeps the code
nicely modular.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_rtalloc.c