Lines Matching refs:refchk
97 struct xchk_refcnt_check *refchk = priv;
103 if (xchk_should_terminate(refchk->sc, &error))
107 rc_last = refchk->bno + refchk->len - 1;
110 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) {
111 xchk_btree_xref_set_corrupt(refchk->sc, cur, 0);
115 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) {
120 refchk->seen++;
133 list_add_tail(&frag->list, &refchk->fragments);
148 struct xchk_refcnt_check *refchk)
159 target_nr = refchk->refcount - refchk->seen;
164 * There are (refchk->rc.rc_refcount - refchk->nr refcount)
176 list_for_each_entry(frag, &refchk->fragments, list) {
187 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
188 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr)
204 while (!list_empty(&refchk->fragments)) {
221 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
249 if (rbno < refchk->bno + refchk->len)
253 refchk->seen = refchk->refcount;
260 list_for_each_entry_safe(frag, n, &refchk->fragments, list) {
274 struct xchk_refcnt_check refchk = {
296 INIT_LIST_HEAD(&refchk.fragments);
298 &xchk_refcountbt_rmap_check, &refchk);
302 xchk_refcountbt_process_rmap_fragments(&refchk);
303 if (refcount != refchk.seen)
307 list_for_each_entry_safe(frag, n, &refchk.fragments, list) {