Lines Matching refs:fsc
125 struct xchk_fscounters *fsc; in xchk_setup_fscounters() local
131 fsc = sc->buf; in xchk_setup_fscounters()
133 xfs_icount_range(sc->mp, &fsc->icount_min, &fsc->icount_max); in xchk_setup_fscounters()
159 struct xchk_fscounters *fsc) in xchk_fscount_aggregate_agcounts() argument
168 fsc->icount = 0; in xchk_fscount_aggregate_agcounts()
169 fsc->ifree = 0; in xchk_fscount_aggregate_agcounts()
170 fsc->fdblocks = 0; in xchk_fscount_aggregate_agcounts()
182 fsc->icount += pag->pagi_count; in xchk_fscount_aggregate_agcounts()
183 fsc->ifree += pag->pagi_freecount; in xchk_fscount_aggregate_agcounts()
186 fsc->fdblocks += pag->pagf_freeblks; in xchk_fscount_aggregate_agcounts()
187 fsc->fdblocks += pag->pagf_flcount; in xchk_fscount_aggregate_agcounts()
188 fsc->fdblocks += pag->pagf_btreeblks; in xchk_fscount_aggregate_agcounts()
194 fsc->fdblocks -= pag->pag_meta_resv.ar_reserved; in xchk_fscount_aggregate_agcounts()
195 fsc->fdblocks -= pag->pag_rmapbt_resv.ar_orig_reserved; in xchk_fscount_aggregate_agcounts()
207 fsc->fdblocks -= mp->m_resblks_avail; in xchk_fscount_aggregate_agcounts()
215 fsc->fdblocks -= delayed; in xchk_fscount_aggregate_agcounts()
217 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts()
222 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts()
223 fsc->fdblocks > mp->m_sb.sb_dblocks || in xchk_fscount_aggregate_agcounts()
224 fsc->ifree > fsc->icount_max) in xchk_fscount_aggregate_agcounts()
232 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts()
307 struct xchk_fscounters *fsc = sc->buf; in xchk_fscounters() local
321 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters()
336 error = xchk_fscount_aggregate_agcounts(sc, fsc); in xchk_fscounters()
343 if (!xchk_fscount_within_range(sc, icount, &mp->m_icount, fsc->icount)) in xchk_fscounters()
346 if (!xchk_fscount_within_range(sc, ifree, &mp->m_ifree, fsc->ifree)) in xchk_fscounters()
350 fsc->fdblocks)) in xchk_fscounters()