Lines Matching refs:refchk
102 struct xchk_refcnt_check *refchk = priv;
108 if (xchk_should_terminate(refchk->sc, &error))
112 rc_last = refchk->bno + refchk->len - 1;
115 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) {
116 xchk_btree_xref_set_corrupt(refchk->sc, cur, 0);
120 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) {
125 refchk->seen++;
138 list_add_tail(&frag->list, &refchk->fragments);
153 struct xchk_refcnt_check *refchk)
164 target_nr = refchk->refcount - refchk->seen;
169 * There are (refchk->rc.rc_refcount - refchk->nr refcount)
181 list_for_each_entry(frag, &refchk->fragments, list) {
192 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
193 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr)
209 while (!list_empty(&refchk->fragments)) {
226 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
254 if (rbno < refchk->bno + refchk->len)
258 refchk->seen = refchk->refcount;
265 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
277 struct xchk_refcnt_check refchk = {
299 INIT_LIST_HEAD(&refchk.fragments);
301 &xchk_refcountbt_rmap_check, &refchk);
305 xchk_refcountbt_process_rmap_fragments(&refchk);
306 if (irec->rc_refcount != refchk.seen) {
307 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen);
312 list_for_each_entry_safe(frag, n, &refchk.fragments, list) {