diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:53 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:53 -0700 |
commit | 6c1f2a60ebef79911cdd91292a789a3cb0b62165 (patch) | |
tree | 13589b3ae0b9fa2db2ae9bb387ccb0a885242fac /fs/xfs/scrub/scrub.c | |
parent | 2d0aac7b6e122f9b3d5db7f1f5ef8910d226f266 (diff) |
xfs: online repair of realtime summariesrepair-rtsummary_2022-10-14
Repair the realtime summary data by constructing a new rtsummary file in
the scrub temporary file, then atomically swapping the contents.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r-- | fs/xfs/scrub/scrub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index a994710d99ae..a9030603b424 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -19,6 +19,7 @@ #include "xfs_btree_staging.h" #include "xfs_rmap.h" #include "xfs_xchgrange.h" +#include "xfs_swapext.h" #include "scrub/scrub.h" #include "scrub/common.h" #include "scrub/trace.h" @@ -358,7 +359,7 @@ static const struct xchk_meta_ops meta_scrub_ops[] = { .setup = xchk_setup_rtsummary, .scrub = xchk_rtsummary, .has = xfs_has_realtime, - .repair = xrep_notsupported, + .repair = xrep_rtsummary, }, [XFS_SCRUB_TYPE_UQUOTA] = { /* user quota */ .type = ST_FS, |