xfs: repair the rmapbt
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:38 +0000 (12:43 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:38 +0000 (12:43 -0800)
commit32080a9b9b2ef8f4089e8e28a2c307334431757e
treee89aa372748628fe9d42f1e4c2ec5d35a3e66696
parente4fd1def30987bbf0fb00867d22cc2634b8dacf0
xfs: repair the rmapbt

Rebuild the reverse mapping btree from all primary metadata.  This first
patch establishes the bare mechanics of finding records and putting
together a new ondisk tree; more complex pieces are needed to make it
work properly.

Link: Documentation/filesystems/xfs-online-fsck-design.rst
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
18 files changed:
fs/xfs/Makefile
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/libxfs/xfs_rmap.h
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/newbt.c
fs/xfs/scrub/newbt.h
fs/xfs/scrub/reap.c
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/rmap.c
fs/xfs/scrub/rmap_repair.c [new file with mode: 0644]
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.h