]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: factor out rtbitmap/summary initialization helpers
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:43:40 +0000 (12:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:39 +0000 (13:44 -0700)
commitf3392b660b7a92d7a1472766a41d294cfe6ec3c9
tree71b7fed6e8586318042562c746c9e5a6e05c1b36
parent27503e091048b5a1b6f27334954a32f21ae4fc72
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