xref: /linux/fs/xfs/scrub/health.h (revision a06c3fad49a50d5d5eb078f93e70f4d3eca5d5a5)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (C) 2019-2023 Oracle.  All Rights Reserved.
4  * Author: Darrick J. Wong <djwong@kernel.org>
5  */
6 #ifndef __XFS_SCRUB_HEALTH_H__
7 #define __XFS_SCRUB_HEALTH_H__
8 
9 unsigned int xchk_health_mask_for_scrub_type(__u32 scrub_type);
10 void xchk_update_health(struct xfs_scrub *sc);
11 void xchk_ag_btree_del_cursor_if_sick(struct xfs_scrub *sc,
12 		struct xfs_btree_cur **curp, unsigned int sm_type);
13 void xchk_mark_healthy_if_clean(struct xfs_scrub *sc, unsigned int mask);
14 bool xchk_file_looks_zapped(struct xfs_scrub *sc, unsigned int mask);
15 int xchk_health_record(struct xfs_scrub *sc);
16 
17 #endif /* __XFS_SCRUB_HEALTH_H__ */
18