summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/common.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-03-27 17:02:51 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-04-15 17:02:47 -0700
commit051c747b550341dbe495faf7afc5dc238bcb9858 (patch)
tree9a7ffded3fd7d6d7840d5ed3cef7d2508f43c617 /fs/xfs/scrub/common.c
parentbc649784ea986bfc6515e6cd62afcb8378fa6324 (diff)
xfs: update health status if we get a clean bill of healthdeferred-inactivation_2019-04-15
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 <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/common.c')
-rw-r--r--fs/xfs/scrub/common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/scrub/common.c b/fs/xfs/scrub/common.c
index f9192505156a..cfb9a6831ad7 100644
--- a/fs/xfs/scrub/common.c
+++ b/fs/xfs/scrub/common.c
@@ -209,6 +209,15 @@ xchk_ino_set_preen(
trace_xchk_ino_preen(sc, ino, __return_address);
}
+/* Record non-specific corruption. */
+void
+xchk_set_corrupt(
+ struct xfs_scrub *sc)
+{
+ sc->sm->sm_flags |= XFS_SCRUB_OFLAG_CORRUPT;
+ trace_xchk_fs_error(sc, 0, __return_address);
+}
+
/* Record a corrupt block. */
void
xchk_block_set_corrupt(