Lines Matching refs:frag

103 	struct xchk_refcnt_frag		*frag;  in xchk_refcountbt_rmap_check()  local
133 frag = kmalloc(sizeof(struct xchk_refcnt_frag), in xchk_refcountbt_rmap_check()
135 if (!frag) in xchk_refcountbt_rmap_check()
137 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check()
138 list_add_tail(&frag->list, &refchk->fragments); in xchk_refcountbt_rmap_check()
156 struct xchk_refcnt_frag *frag; in xchk_refcountbt_process_rmap_fragments() local
181 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
182 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments()
184 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments()
192 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
193 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments()
195 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
198 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
213 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
214 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
220 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
221 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
226 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
227 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
228 if (frag->rm.rm_startblock != rbno) in xchk_refcountbt_process_rmap_fragments()
230 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
261 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
262 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
263 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
265 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
266 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
267 kfree(frag); in xchk_refcountbt_process_rmap_fragments()
286 struct xchk_refcnt_frag *frag; in xchk_refcountbt_xref_rmap() local
312 list_for_each_entry_safe(frag, n, &refchk.fragments, list) { in xchk_refcountbt_xref_rmap()
313 list_del(&frag->list); in xchk_refcountbt_xref_rmap()
314 kfree(frag); in xchk_refcountbt_xref_rmap()