Lines Matching refs:refchk

128 	struct xchk_rtrefcnt_check	*refchk = priv;  in xchk_rtrefcountbt_rmap_check()  local
134 if (xchk_should_terminate(refchk->sc, &error)) in xchk_rtrefcountbt_rmap_check()
138 rc_last = refchk->bno + refchk->len - 1; in xchk_rtrefcountbt_rmap_check()
141 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_rtrefcountbt_rmap_check()
142 xchk_btree_xref_set_corrupt(refchk->sc, cur, 0); in xchk_rtrefcountbt_rmap_check()
146 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_rtrefcountbt_rmap_check()
151 refchk->seen++; in xchk_rtrefcountbt_rmap_check()
164 list_add_tail(&frag->list, &refchk->fragments); in xchk_rtrefcountbt_rmap_check()
179 struct xchk_rtrefcnt_check *refchk) in xchk_rtrefcountbt_process_rmap_fragments() argument
190 target_nr = refchk->refcount - refchk->seen; in xchk_rtrefcountbt_process_rmap_fragments()
207 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_rtrefcountbt_process_rmap_fragments()
218 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_rtrefcountbt_process_rmap_fragments()
219 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_rtrefcountbt_process_rmap_fragments()
235 while (!list_empty(&refchk->fragments)) { in xchk_rtrefcountbt_process_rmap_fragments()
252 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_rtrefcountbt_process_rmap_fragments()
280 if (rbno < refchk->bno + refchk->len) in xchk_rtrefcountbt_process_rmap_fragments()
284 refchk->seen = refchk->refcount; in xchk_rtrefcountbt_process_rmap_fragments()
291 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_rtrefcountbt_process_rmap_fragments()
303 struct xchk_rtrefcnt_check refchk = { in xchk_rtrefcountbt_xref_rmap() local
325 INIT_LIST_HEAD(&refchk.fragments); in xchk_rtrefcountbt_xref_rmap()
327 xchk_rtrefcountbt_rmap_check, &refchk); in xchk_rtrefcountbt_xref_rmap()
331 xchk_rtrefcountbt_process_rmap_fragments(&refchk); in xchk_rtrefcountbt_xref_rmap()
332 if (irec->rc_refcount != refchk.seen) in xchk_rtrefcountbt_xref_rmap()
336 list_for_each_entry_safe(frag, n, &refchk.fragments, list) { in xchk_rtrefcountbt_xref_rmap()