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
177 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments()
178 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments()
180 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) 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()
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 kmem_free(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 kmem_free(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 kmem_free(frag); in xchk_refcountbt_process_rmap_fragments()
285 struct xchk_refcnt_frag *frag; in xchk_refcountbt_xref_rmap() local
309 list_for_each_entry_safe(frag, n, &refchk.fragments, list) { in xchk_refcountbt_xref_rmap()
310 list_del(&frag->list); in xchk_refcountbt_xref_rmap()
311 kmem_free(frag); in xchk_refcountbt_xref_rmap()