summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/trace.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 23:43:40 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:43:40 +0300
commit7e1b84b24d257700e417bc9cd724c1efdff653d7 (patch)
tree01cd17c635ebe6685c152823e2d7c2ced2c4cd03 /fs/xfs/scrub/trace.c
parent4787fc802752c9b73b28ff18860c0560bf4337f2 (diff)
downloadlinux-7e1b84b24d257700e417bc9cd724c1efdff653d7.tar.xz
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>
Diffstat (limited to 'fs/xfs/scrub/trace.c')
-rw-r--r--fs/xfs/scrub/trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/trace.c b/fs/xfs/scrub/trace.c
index dc8a331f4b02..3dd281d6d185 100644
--- a/fs/xfs/scrub/trace.c
+++ b/fs/xfs/scrub/trace.c
@@ -18,6 +18,7 @@
#include "xfs_quota_defs.h"
#include "xfs_da_format.h"
#include "xfs_dir2.h"
+#include "xfs_rmap.h"
#include "scrub/scrub.h"
#include "scrub/xfile.h"
#include "scrub/xfarray.h"