summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/trace.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 23:33:05 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:33:05 +0300
commit4ed080cd7cb077bbb4b64f0712be1618c9d55a0d (patch)
treeae58915d05428b70e9b0f64e1966e9a5daf28234 /fs/xfs/scrub/trace.c
parenta1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c (diff)
downloadlinux-4ed080cd7cb077bbb4b64f0712be1618c9d55a0d.tar.xz
xfs: repair summary counters
Use the same summary counter calculation infrastructure to generate new values for the in-core summary counters. The difference between the scrubber and the repairer is that the repairer will freeze the fs during setup, which means that the values should match exactly. 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 2d5a330afe10..b8f3795f7d9b 100644
--- a/fs/xfs/scrub/trace.c
+++ b/fs/xfs/scrub/trace.c
@@ -24,6 +24,7 @@
#include "scrub/quota.h"
#include "scrub/iscan.h"
#include "scrub/nlinks.h"
+#include "scrub/fscounters.h"
/* Figure out which block the btree cursor was pointing to. */
static inline xfs_fsblock_t