]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: create a helper to handle logging parts of rt bitmap/summary blocks
authorDarrick J. Wong <djwong@kernel.org>
Thu, 15 Feb 2024 08:25:47 +0000 (09:25 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commit3d763f980fbb6d0e2d9371e2b2903b9fb77cb8e3
tree2dd576051b26685d4efeb7cd57265884cc3196e8
parent3789ac0071b6f56e70e7f40134c8e6f7936daa2c
xfs: create a helper to handle logging parts of rt bitmap/summary blocks

Source kernel commit: 312d61021b8947446aa9ec80b78b9230e8cb3691

Create an explicit helper function to log parts of rt bitmap and summary
blocks.  While we're at it, fix an off-by-one error in two of the
rtbitmap logging calls that led to unnecessarily large log items but was
otherwise benign.

Note that the upcoming rtgroups patchset will add block headers to the
rtbitmap and rtsummary files.  The helpers in this and the next few
patches take a less than direct route through xfs_rbmblock_wordptr and
xfs_rsumblock_infoptr to avoid helper churn in that patchset.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_rtbitmap.c