2023-04-11 18:59:56 -07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-04-16 08:22:00 -07:00
|
|
|
/*
|
2023-04-11 18:59:57 -07:00
|
|
|
* Copyright (C) 2019-2023 Oracle. All Rights Reserved.
|
2023-04-11 18:59:56 -07:00
|
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
2019-04-16 08:22:00 -07:00
|
|
|
*/
|
|
|
|
#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);
|
2024-02-22 12:39:48 -08:00
|
|
|
void xchk_ag_btree_del_cursor_if_sick(struct xfs_scrub *sc,
|
|
|
|
struct xfs_btree_cur **curp, unsigned int sm_type);
|
2023-12-15 10:03:35 -08:00
|
|
|
void xchk_mark_healthy_if_clean(struct xfs_scrub *sc, unsigned int mask);
|
|
|
|
bool xchk_file_looks_zapped(struct xfs_scrub *sc, unsigned int mask);
|
2024-02-22 12:33:04 -08:00
|
|
|
int xchk_health_record(struct xfs_scrub *sc);
|
2019-04-16 08:22:00 -07:00
|
|
|
|
|
|
|
#endif /* __XFS_SCRUB_HEALTH_H__ */
|