xfs: hook live rmap operations during a repair operation
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:40 +0000 (12:43 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:40 +0000 (12:43 -0800)
commit7e1b84b24d257700e417bc9cd724c1efdff653d7
tree01cd17c635ebe6685c152823e2d7c2ced2c4cd03
parent4787fc802752c9b73b28ff18860c0560bf4337f2
xfs: hook live rmap operations during a repair operation

Hook the regular rmap code when an rmapbt repair operation is running so
that we can unlock the AGF buffer to scan the filesystem and keep the
in-memory btree up to date during the scan.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
12 files changed:
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/libxfs/xfs_rmap.h
fs/xfs/scrub/common.c
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/rmap_repair.c
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/trace.c
fs/xfs/scrub/trace.h