summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/health.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-04-16 18:22:00 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2019-04-16 20:01:57 +0300
commit4860a05d2475d6f50de79f168beb893cc0066a6e (patch)
tree197f1c3f82a1efc399c8f4048ac3c8480ae90b0c /fs/xfs/scrub/health.h
parent160b5a784525e8a44902873f1938e1f4d77fe112 (diff)
downloadlinux-4860a05d2475d6f50de79f168beb893cc0066a6e.tar.xz
xfs: scrub/repair should update filesystem metadata health
Now that we have the ability to track sick metadata in-core, make scrub and repair update those health assessments after doing work. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/health.h')
-rw-r--r--fs/xfs/scrub/health.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/scrub/health.h b/fs/xfs/scrub/health.h
new file mode 100644
index 000000000000..fd0d466c8658
--- /dev/null
+++ b/fs/xfs/scrub/health.h
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019 Oracle. All Rights Reserved.
+ * Author: Darrick J. Wong <darrick.wong@oracle.com>
+ */
+#ifndef __XFS_SCRUB_HEALTH_H__
+#define __XFS_SCRUB_HEALTH_H__
+
+unsigned int xchk_health_mask_for_scrub_type(__u32 scrub_type);
+void xchk_update_health(struct xfs_scrub *sc);
+
+#endif /* __XFS_SCRUB_HEALTH_H__ */