Lines Matching refs:pag
27 struct xfs_perag *pag; in xfs_health_unmount() local
37 for_each_perag(mp, agno, pag) { in xfs_health_unmount()
38 xfs_ag_measure_sickness(pag, &sick, &checked); in xfs_health_unmount()
179 struct xfs_perag *pag, in xfs_ag_mark_sick() argument
183 trace_xfs_ag_mark_sick(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_sick()
185 spin_lock(&pag->pag_state_lock); in xfs_ag_mark_sick()
186 pag->pag_sick |= mask; in xfs_ag_mark_sick()
187 pag->pag_checked |= mask; in xfs_ag_mark_sick()
188 spin_unlock(&pag->pag_state_lock); in xfs_ag_mark_sick()
194 struct xfs_perag *pag, in xfs_ag_mark_healthy() argument
198 trace_xfs_ag_mark_healthy(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_healthy()
200 spin_lock(&pag->pag_state_lock); in xfs_ag_mark_healthy()
201 pag->pag_sick &= ~mask; in xfs_ag_mark_healthy()
202 pag->pag_checked |= mask; in xfs_ag_mark_healthy()
203 spin_unlock(&pag->pag_state_lock); in xfs_ag_mark_healthy()
209 struct xfs_perag *pag, in xfs_ag_measure_sickness() argument
213 spin_lock(&pag->pag_state_lock); in xfs_ag_measure_sickness()
214 *sick = pag->pag_sick; in xfs_ag_measure_sickness()
215 *checked = pag->pag_checked; in xfs_ag_measure_sickness()
216 spin_unlock(&pag->pag_state_lock); in xfs_ag_measure_sickness()
344 struct xfs_perag *pag, in xfs_ag_geom_health() argument
354 xfs_ag_measure_sickness(pag, &sick, &checked); in xfs_ag_geom_health()