Lines Matching defs:fsc

155 	struct xchk_fscounters	*fsc = sc->buf;
173 fsc->frozen = true;
182 struct xchk_fscounters *fsc = buf;
183 struct xfs_scrub *sc = fsc->sc;
186 if (!fsc->frozen)
193 fsc->frozen = false;
200 struct xchk_fscounters *fsc;
214 fsc = sc->buf;
215 fsc->sc = sc;
217 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max);
261 struct xchk_fscounters *fsc,
274 fsc->fdblocks += blocks - 1;
279 fsc->fdblocks += blocks - 1;
295 struct xchk_fscounters *fsc)
305 fsc->icount = 0;
306 fsc->ifree = 0;
307 fsc->fdblocks = 0;
321 fsc->icount += pag->pagi_count;
322 fsc->ifree += pag->pagi_freecount;
325 fsc->fdblocks += pag->pagf_freeblks;
326 fsc->fdblocks += pag->pagf_flcount;
328 fsc->fdblocks += pag->pagf_btreeblks;
330 error = xchk_fscount_btreeblks(sc, fsc, agno);
339 fsc->fdblocks -= pag->pag_meta_resv.ar_reserved;
340 fsc->fdblocks -= pag->pag_rmapbt_resv.ar_orig_reserved;
354 fsc->fdblocks -= mp->m_resblks_avail;
362 fsc->fdblocks -= delayed;
364 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks,
369 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max ||
370 fsc->fdblocks > mp->m_sb.sb_dblocks ||
371 fsc->ifree > fsc->icount_max)
379 if (fsc->ifree > fsc->icount) {
396 struct xchk_fscounters *fsc = priv;
399 fsc->frextents += rec->ar_extcount;
401 xchk_should_terminate(fsc->sc, &error);
409 struct xchk_fscounters *fsc)
414 fsc->frextents = 0;
420 xchk_fscount_add_frextent, fsc);
434 struct xchk_fscounters *fsc)
436 fsc->frextents = 0;
503 struct xchk_fscounters *fsc = sc->buf;
528 if (!fsc->frozen)
536 if (icount < fsc->icount_min || icount > fsc->icount_max)
555 error = xchk_fscount_aggregate_agcounts(sc, fsc);
560 error = xchk_fscount_count_frextents(sc, fsc);
573 fsc->icount)) {
574 if (fsc->frozen)
580 if (!xchk_fscount_within_range(sc, ifree, &mp->m_ifree, fsc->ifree)) {
581 if (fsc->frozen)
588 fsc->fdblocks)) {
589 if (fsc->frozen)
596 fsc->frextents)) {
597 if (fsc->frozen)