]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: factor out rtbitmap/summary initialization helpers xfs-rt-refactor
authorChristoph Hellwig <hch@lst.de>
Sun, 14 Jul 2024 16:03:29 +0000 (18:03 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 30 Jul 2024 01:02:28 +0000 (18:02 -0700)
commit50eb06188e917fdc52cefbd70bbb221e4f52366a
tree8f3a305ddffe217e6bea31400cd4b4e152674f26
parentca01268e434d55142aa61fa13b3abbebd78e1223
xfs: factor out rtbitmap/summary initialization helpers

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 adѕ a metadata header
to each block, which means even more shared code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/xfs_rtalloc.c