health.c (5c8483cec3fe261a5c1ede7430bab042ed156361) health.c (77a530e6c49d22bd4a221d2f059db24fc30094db)
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#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"

--- 262 unchanged lines hidden (view full) ---

271 * the per-AG metadata types that were repaired. Exclude these from
272 * the filesystem health query because we have not yet updated the
273 * health status and we want everything to be scanned.
274 */
275 if ((sc->flags & XREP_ALREADY_FIXED) &&
276 type_to_health_flag[sc->sm->sm_type].group == XHG_AG)
277 mask &= ~sc->sick_mask;
278
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#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"

--- 262 unchanged lines hidden (view full) ---

271 * the per-AG metadata types that were repaired. Exclude these from
272 * the filesystem health query because we have not yet updated the
273 * health status and we want everything to be scanned.
274 */
275 if ((sc->flags & XREP_ALREADY_FIXED) &&
276 type_to_health_flag[sc->sm->sm_type].group == XHG_AG)
277 mask &= ~sc->sick_mask;
278
279 if (xfs_ag_has_sickness((*curp)->bc_ag.pag, mask)) {
279 if (xfs_group_has_sickness((*curp)->bc_group, mask)) {
280 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_XFAIL;
281 xfs_btree_del_cursor(*curp, XFS_BTREE_NOERROR);
282 *curp = NULL;
283 }
284}
285
286/*
287 * Quick scan to double-check that there isn't any evidence of lingering

--- 28 unchanged lines hidden ---
280 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_XFAIL;
281 xfs_btree_del_cursor(*curp, XFS_BTREE_NOERROR);
282 *curp = NULL;
283 }
284}
285
286/*
287 * Quick scan to double-check that there isn't any evidence of lingering

--- 28 unchanged lines hidden ---