diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-05 17:43:52 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-25 22:25:56 -0700 |
commit | cc079159dc352b1f34cf2056508f3647a2f1942d (patch) | |
tree | 61e43265cad20e25c8a9fd5269571a2070948227 /fs/xfs/scrub/scrub.c | |
parent | 8fb235a2da43d415d754d92b8e2a42b2507c1d1d (diff) |
xfs: update health status if we get a clean bill of healthindirect-health-reporting_2021-08-25
If scrub finds that everything is ok with the filesystem, we need a way
to tell the health tracking that it can let go of indirect health flags,
since indirect flags only mean that at some point in the past we lost
some context.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 0f89fb3c7d19..ff2c9b49f9a4 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -358,6 +358,12 @@ static const struct xchk_meta_ops meta_scrub_ops[] = { .scrub = xchk_quotacheck, .repair = xrep_quotacheck, }, + [XFS_SCRUB_TYPE_HEALTHY] = { /* fs healthy; clean all reminders */ + .type = ST_FS, + .setup = xchk_setup_fs, + .scrub = xchk_health_record, + .repair = xrep_notsupported, + }, }; /* This isn't a stable feature, warn once per day. */ |