]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: convert regular rmap repair to use in-memory btrees
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:17 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:42 +0000 (11:37 -0700)
commit6de18ea1bf1b50835da080c711a1d9fe4eed41c1
tree66ce2200f3b7de26957ca5026bb0e4a50402c87d
parentb654d15510f4be85acdd71b521adb4bc1e052eaf
xfs_repair: convert regular rmap repair to use in-memory btrees

Convert the rmap btree repair code to use in-memory rmap btrees to store
the observed reverse mapping records.  This will eliminate the need for
a separate record sorting step, as well as eliminate the need for all
the code that turns multiple consecutive bmap records into a single rmap
record.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/libxfs.h
libxfs/buf_mem.h
libxfs/libxfs_api_defs.h
repair/agbtree.c
repair/agbtree.h
repair/phase5.c
repair/rmap.c
repair/rmap.h
repair/xfs_repair.c