Lines Matching refs:fsc

122 	struct xchk_fscounters	*fsc;  in xchk_setup_fscounters()  local
128 fsc = sc->buf; in xchk_setup_fscounters()
130 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max); in xchk_setup_fscounters()
156 struct xchk_fscounters *fsc) in xchk_fscount_aggregate_agcounts() argument
166 fsc->icount = 0; in xchk_fscount_aggregate_agcounts()
167 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts()
168 fsc->fdblocks = 0; in xchk_fscount_aggregate_agcounts()
180 fsc->icount += pag->pagi_count; in xchk_fscount_aggregate_agcounts()
181 fsc->ifree += pag->pagi_freecount; in xchk_fscount_aggregate_agcounts()
184 fsc->fdblocks += pag->pagf_freeblks; in xchk_fscount_aggregate_agcounts()
185 fsc->fdblocks += pag->pagf_flcount; in xchk_fscount_aggregate_agcounts()
186 fsc->fdblocks += pag->pagf_btreeblks; in xchk_fscount_aggregate_agcounts()
192 fsc->fdblocks -= pag->pag_meta_resv.ar_reserved; in xchk_fscount_aggregate_agcounts()
193 fsc->fdblocks -= pag->pag_rmapbt_resv.ar_orig_reserved; in xchk_fscount_aggregate_agcounts()
208 fsc->fdblocks -= mp->m_resblks_avail; in xchk_fscount_aggregate_agcounts()
216 fsc->fdblocks -= delayed; in xchk_fscount_aggregate_agcounts()
218 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts()
223 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts()
224 fsc->fdblocks > mp->m_sb.sb_dblocks || in xchk_fscount_aggregate_agcounts()
225 fsc->ifree > fsc->icount_max) in xchk_fscount_aggregate_agcounts()
233 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts()
308 struct xchk_fscounters *fsc = sc->buf; in xchk_fscounters() local
322 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters()
337 error = xchk_fscount_aggregate_agcounts(sc, fsc); in xchk_fscounters()
344 if (!xchk_fscount_within_range(sc, icount, &mp->m_icount, fsc->icount)) in xchk_fscounters()
347 if (!xchk_fscount_within_range(sc, ifree, &mp->m_ifree, fsc->ifree)) in xchk_fscounters()
351 fsc->fdblocks)) in xchk_fscounters()