]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: factor out rtbitmap/summary initialization helpers
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:42 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:02 +0000 (15:45 -0700)
commitf666752a62783cb03e301ca5b004bc0977899a45
tree71b7fed6e8586318042562c746c9e5a6e05c1b36
parent915ebe7528ce9d0a0855f354f67ff64cd9e80422
xfs: factor out rtbitmap/summary initialization helpers

Source kernel commit: 2a95ffc44b610643c9d5d2665600d3fbefa5ec4f

Add helpers to libxfs that can be shared by growfs and mkfs for
initializing the rtbitmap and summary, and by passing the optional data
pointer also by repair for rebuilding them.  This will become even more
useful when the rtgroups feature adds a metadata header to each block,
which means even more shared code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: minor documentation and data advance tweaks]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h