]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: factor out a xfs_growfs_rt_bmblock helper
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 19:22:06 +0000 (12:22 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 30 Jul 2024 00:56:19 +0000 (17:56 -0700)
commitece92c5d7a7235367fce6e38c972d3660433e4e8
tree5a738e9bbccc0a3d4019e61011e9c002f160fb85
parentb7bc214d9a6788927581e3735e5725c140e4d0bc
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>
fs/xfs/xfs_rtalloc.c