]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/phase6.c
xfs_{db,repair}: use m_blockwsize instead of sb_blocksize for rt blocks
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:30 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:23 +0000 (14:06 -0700)
commit9c69d1c725391f9a65fa8d6d2be337466918e248
tree70feea7c2469290af6c49eaed441b594c773112a
parent251eb517007210b82288852e00c19133c3f6930f
xfs_{db,repair}: use m_blockwsize instead of sb_blocksize for rt blocks

In preparation to add block headers to rt bitmap and summary blocks,
convert all the relevant calculations in the userspace tools to use the
per-block word count instead of the raw blocksize.  This is key to
adding this support outside of libxfs.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
db/check.c
repair/phase6.c
repair/rt.c