]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: calculate RT bitmap and summary blocks based on sb_rextents
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Aug 2024 18:48:01 +0000 (11:48 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 08:01:23 +0000 (10:01 +0200)
commit63d826f73f500768fe26f7a66ed4b558d1a5db01
tree08a890de786dec574caa3ac1016fc0f443881c47
parent51fcda94d7eef8e4a29db8e6e7eee628b24c4769
xfs: calculate RT bitmap and summary blocks based on sb_rextents

Use the on-disk rextents to calculate the bitmap and summary blocks
instead of the calculated one so that we can refactor the helpers for
calculating them.

As the RT bitmap and summary scrubbers already check that sb_rextents
match the block count this does not change coverage of the scrubber.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/scrub/rtbitmap.c
fs/xfs/scrub/rtsummary.c