xfs: create a helper to handle logging parts of rt bitmap/summary blocks
authorDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:43:10 +0000 (16:43 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 18 Oct 2023 17:58:58 +0000 (10:58 -0700)
commit312d61021b8947446aa9ec80b78b9230e8cb3691
treebb3806e3c136a760f45a306389e3769eb2e7656b
parentd0448fe76ac1a9ccbce574577a4c82246d17eec4
xfs: create a helper to handle logging parts of rt bitmap/summary blocks

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>
fs/xfs/libxfs/xfs_rtbitmap.c