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