Lines Matching refs:frag
100 struct xchk_refcnt_frag *frag; in xchk_refcountbt_rmap_check() local
130 frag = kmalloc(sizeof(struct xchk_refcnt_frag), in xchk_refcountbt_rmap_check()
132 if (!frag) in xchk_refcountbt_rmap_check()
134 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check()
135 list_add_tail(&frag->list, &refchk->fragments); in xchk_refcountbt_rmap_check()
153 struct xchk_refcnt_frag *frag; in xchk_refcountbt_process_rmap_fragments() local
178 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
179 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments()
181 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments()
189 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
190 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments()
192 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
195 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
210 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
211 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
217 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
218 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
223 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
224 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
225 if (frag->rm.rm_startblock != rbno) in xchk_refcountbt_process_rmap_fragments()
227 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
258 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
259 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
260 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
262 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
263 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
264 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
283 struct xchk_refcnt_frag *frag; in xchk_refcountbt_xref_rmap() local
307 list_for_each_entry_safe(frag, n, &refchk.fragments, list) { in xchk_refcountbt_xref_rmap()
308 list_del(&frag->list); in xchk_refcountbt_xref_rmap()
309 kfree(frag); in xchk_refcountbt_xref_rmap()