xref: /OK3568_Linux_fs/kernel/fs/xfs/scrub/health.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0+
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2019 Oracle.  All Rights Reserved.
4*4882a593Smuzhiyun  * Author: Darrick J. Wong <darrick.wong@oracle.com>
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun #ifndef __XFS_SCRUB_HEALTH_H__
7*4882a593Smuzhiyun #define __XFS_SCRUB_HEALTH_H__
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun unsigned int xchk_health_mask_for_scrub_type(__u32 scrub_type);
10*4882a593Smuzhiyun void xchk_update_health(struct xfs_scrub *sc);
11*4882a593Smuzhiyun bool xchk_ag_btree_healthy_enough(struct xfs_scrub *sc, struct xfs_perag *pag,
12*4882a593Smuzhiyun 		xfs_btnum_t btnum);
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #endif /* __XFS_SCRUB_HEALTH_H__ */
15