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