Lines Matching defs:fsc

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