xfs: introduce bitmap type for AG blocks
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:37 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:37 +0000 (19:00 -0700)
commita47bd1e0e690d0296c3e48fc3d6f2d359c222d6c
treefc5aee3c334da769162d8048f06d591edd20ac89
parent6772fcc8890ae34595253fcfb8196c1aea65e111
xfs: introduce bitmap type for AG blocks

Create a typechecked bitmap for extents within an AG.  Online repair
uses bitmaps to store various different types of numbers, so let's make
it obvious when we're storing xfs_agblock_t (and later xfs_fsblock_t)
versus anything else.

In subsequent patches, we're going to use agblock bitmaps to enhance the
rmapbt checker to look for discrepancies between the rmapbt records and
AG metadata block usage.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/bitmap.h
fs/xfs/scrub/repair.h