Lines Matching refs:frag

98 	struct xchk_refcnt_frag		*frag;  in xchk_refcountbt_rmap_check()  local
128 frag = kmem_alloc(sizeof(struct xchk_refcnt_frag), in xchk_refcountbt_rmap_check()
130 if (!frag) in xchk_refcountbt_rmap_check()
132 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check()
133 list_add_tail(&frag->list, &refchk->fragments); in xchk_refcountbt_rmap_check()
151 struct xchk_refcnt_frag *frag; in xchk_refcountbt_process_rmap_fragments() local
176 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
177 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments()
179 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments()
187 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
188 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments()
190 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
193 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
208 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
209 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
215 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
216 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
221 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
222 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
223 if (frag->rm.rm_startblock != rbno) in xchk_refcountbt_process_rmap_fragments()
225 list_move_tail(&frag->list, &worklist); in xchk_refcountbt_process_rmap_fragments()
256 list_for_each_entry_safe(frag, n, &worklist, list) { in xchk_refcountbt_process_rmap_fragments()
257 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
258 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
260 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
261 list_del(&frag->list); in xchk_refcountbt_process_rmap_fragments()
262 kmem_free(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 kmem_free(frag); in xchk_refcountbt_xref_rmap()