xfs: create a shadow rmap btree during rmap repair
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:39 +0000 (12:43 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:39 +0000 (12:43 -0800)
commit4787fc802752c9b73b28ff18860c0560bf4337f2
treec1eef55a042595079edf65e18e8229a4017a3c54
parent32080a9b9b2ef8f4089e8e28a2c307334431757e
xfs: create a shadow rmap btree during rmap repair

Create an in-memory btree of rmap records instead of an array.  This
enables us to do live record collection instead of freezing the fs.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/libxfs/xfs_rmap_btree.h
fs/xfs/libxfs/xfs_shared.h
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/rmap_repair.c
fs/xfs/xfs_stats.c
fs/xfs/xfs_stats.h