Lines Matching refs:sc
128 struct xfs_scrub *sc) in xchk_update_health() argument
133 if (!sc->sick_mask) in xchk_update_health()
136 bad = (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT); in xchk_update_health()
137 switch (type_to_health_flag[sc->sm->sm_type].group) { in xchk_update_health()
139 pag = xfs_perag_get(sc->mp, sc->sm->sm_agno); in xchk_update_health()
141 xfs_ag_mark_sick(pag, sc->sick_mask); in xchk_update_health()
143 xfs_ag_mark_healthy(pag, sc->sick_mask); in xchk_update_health()
147 if (!sc->ip) in xchk_update_health()
150 xfs_inode_mark_sick(sc->ip, sc->sick_mask); in xchk_update_health()
152 xfs_inode_mark_healthy(sc->ip, sc->sick_mask); in xchk_update_health()
156 xfs_fs_mark_sick(sc->mp, sc->sick_mask); in xchk_update_health()
158 xfs_fs_mark_healthy(sc->mp, sc->sick_mask); in xchk_update_health()
162 xfs_rt_mark_sick(sc->mp, sc->sick_mask); in xchk_update_health()
164 xfs_rt_mark_healthy(sc->mp, sc->sick_mask); in xchk_update_health()
175 struct xfs_scrub *sc, in xchk_ag_btree_healthy_enough() argument
190 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_ag_btree_healthy_enough()
195 if (sc->sm->sm_type == XFS_SCRUB_TYPE_CNTBT) in xchk_ag_btree_healthy_enough()
200 if (sc->sm->sm_type == XFS_SCRUB_TYPE_INOBT) in xchk_ag_btree_healthy_enough()
205 if (sc->sm->sm_type == XFS_SCRUB_TYPE_FINOBT) in xchk_ag_btree_healthy_enough()
210 if (sc->sm->sm_type == XFS_SCRUB_TYPE_RMAPBT) in xchk_ag_btree_healthy_enough()
215 if (sc->sm->sm_type == XFS_SCRUB_TYPE_REFCNTBT) in xchk_ag_btree_healthy_enough()
225 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_XFAIL; in xchk_ag_btree_healthy_enough()