diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 10:45:02 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:54:51 -0700 |
commit | 73f671365b395e89eea7b1d9b5b5fd4a310cfef0 (patch) | |
tree | b166d00543de301a0d72055183b44279cf3fd70d /fs/xfs/scrub/scrub.h | |
parent | 5cac0551d77deb433310d9c4fe712f6ac0438509 (diff) |
xfs: repair free space btrees
Rebuild the free space btrees from the gaps in the rmap btree.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
-rw-r--r-- | fs/xfs/scrub/scrub.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h index e04984ff97aa..6440e3d7954b 100644 --- a/fs/xfs/scrub/scrub.h +++ b/fs/xfs/scrub/scrub.h @@ -26,6 +26,14 @@ struct xchk_meta_ops { /* Repair or optimize the metadata. */ int (*repair)(struct xfs_scrub *); + /* + * Re-scrub the metadata we repaired, in case there's extra work that + * we need to do to check our repair work. If this is NULL, we'll use + * the ->scrub function pointer, assuming that the regular scrub is + * sufficient. + */ + int (*repair_eval)(struct xfs_scrub *sc); + /* Decide if we even have this piece of metadata. */ bool (*has)(struct xfs_mount *); |