Lines Matching refs:fsc

165 	struct xchk_fscounters	*fsc = sc->buf;  in xchk_fscounters_freeze()  local
183 fsc->frozen = true; in xchk_fscounters_freeze()
192 struct xchk_fscounters *fsc = buf; in xchk_fscounters_cleanup() local
193 struct xfs_scrub *sc = fsc->sc; in xchk_fscounters_cleanup()
196 if (!fsc->frozen) in xchk_fscounters_cleanup()
203 fsc->frozen = false; in xchk_fscounters_cleanup()
210 struct xchk_fscounters *fsc; in xchk_setup_fscounters() local
224 fsc = sc->buf; in xchk_setup_fscounters()
225 fsc->sc = sc; in xchk_setup_fscounters()
227 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max); in xchk_setup_fscounters()
264 struct xchk_fscounters *fsc, in xchk_fscount_btreeblks() argument
277 fsc->fdblocks += blocks - 1; in xchk_fscount_btreeblks()
282 fsc->fdblocks += blocks - 1; in xchk_fscount_btreeblks()
298 struct xchk_fscounters *fsc) in xchk_fscount_aggregate_agcounts() argument
308 fsc->icount = 0; in xchk_fscount_aggregate_agcounts()
309 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts()
310 fsc->fdblocks = 0; in xchk_fscount_aggregate_agcounts()
324 fsc->icount += pag->pagi_count; in xchk_fscount_aggregate_agcounts()
325 fsc->ifree += pag->pagi_freecount; in xchk_fscount_aggregate_agcounts()
328 fsc->fdblocks += pag->pagf_freeblks; in xchk_fscount_aggregate_agcounts()
329 fsc->fdblocks += pag->pagf_flcount; in xchk_fscount_aggregate_agcounts()
331 fsc->fdblocks += pag->pagf_btreeblks; in xchk_fscount_aggregate_agcounts()
333 error = xchk_fscount_btreeblks(sc, fsc, agno); in xchk_fscount_aggregate_agcounts()
342 fsc->fdblocks -= pag->pag_meta_resv.ar_reserved; in xchk_fscount_aggregate_agcounts()
343 fsc->fdblocks -= pag->pag_rmapbt_resv.ar_orig_reserved; in xchk_fscount_aggregate_agcounts()
357 fsc->fdblocks -= mp->m_resblks_avail; in xchk_fscount_aggregate_agcounts()
365 fsc->fdblocks -= delayed; in xchk_fscount_aggregate_agcounts()
367 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts()
372 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts()
373 fsc->fdblocks > mp->m_sb.sb_dblocks || in xchk_fscount_aggregate_agcounts()
374 fsc->ifree > fsc->icount_max) in xchk_fscount_aggregate_agcounts()
382 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts()
399 struct xchk_fscounters *fsc = priv; in xchk_fscount_add_frextent() local
402 fsc->frextents += rec->ar_extcount; in xchk_fscount_add_frextent()
404 xchk_should_terminate(fsc->sc, &error); in xchk_fscount_add_frextent()
412 struct xchk_fscounters *fsc) in xchk_fscount_count_frextents() argument
417 fsc->frextents = 0; in xchk_fscount_count_frextents()
423 xchk_fscount_add_frextent, fsc); in xchk_fscount_count_frextents()
437 struct xchk_fscounters *fsc) in xchk_fscount_count_frextents() argument
439 fsc->frextents = 0; in xchk_fscount_count_frextents()
502 struct xchk_fscounters *fsc = sc->buf; in xchk_fscounters() local
527 if (!fsc->frozen) in xchk_fscounters()
535 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters()
554 error = xchk_fscount_aggregate_agcounts(sc, fsc); in xchk_fscounters()
559 error = xchk_fscount_count_frextents(sc, fsc); in xchk_fscounters()
572 fsc->icount)) { in xchk_fscounters()
573 if (fsc->frozen) in xchk_fscounters()
579 if (!xchk_fscount_within_range(sc, ifree, &mp->m_ifree, fsc->ifree)) { in xchk_fscounters()
580 if (fsc->frozen) in xchk_fscounters()
587 fsc->fdblocks)) { in xchk_fscounters()
588 if (fsc->frozen) in xchk_fscounters()
595 fsc->frextents)) { in xchk_fscounters()
596 if (fsc->frozen) in xchk_fscounters()