Lines Matching refs:busyp

31 	struct xfs_extent_busy	*busyp;  in xfs_extent_busy_insert()  local
51 busyp = rb_entry(parent, struct xfs_extent_busy, rb_node); in xfs_extent_busy_insert()
53 if (new->bno < busyp->bno) { in xfs_extent_busy_insert()
55 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert()
56 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert()
58 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert()
90 struct xfs_extent_busy *busyp; in xfs_extent_busy_search() local
100 busyp = rb_entry(rbp, struct xfs_extent_busy, rb_node); in xfs_extent_busy_search()
101 if (bno < busyp->bno) { in xfs_extent_busy_search()
103 if (bno + len > busyp->bno) in xfs_extent_busy_search()
106 } else if (bno > busyp->bno) { in xfs_extent_busy_search()
108 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search()
113 match = (busyp->length == len) ? 1 : -1; in xfs_extent_busy_search()
137 struct xfs_extent_busy *busyp, in xfs_extent_busy_update_extent() argument
144 xfs_agblock_t bbno = busyp->bno; in xfs_extent_busy_update_extent()
145 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_update_extent()
152 if (busyp->flags & XFS_EXTENT_BUSY_DISCARDED) { in xfs_extent_busy_update_extent()
228 rb_erase(&busyp->rb_node, &pag->pagb_tree); in xfs_extent_busy_update_extent()
229 busyp->length = 0; in xfs_extent_busy_update_extent()
246 busyp->bno = fend; in xfs_extent_busy_update_extent()
261 busyp->length = fbno - busyp->bno; in xfs_extent_busy_update_extent()
299 struct xfs_extent_busy *busyp = in xfs_extent_busy_reuse() local
301 xfs_agblock_t bbno = busyp->bno; in xfs_extent_busy_reuse()
302 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_reuse()
312 if (!xfs_extent_busy_update_extent(mp, pag, busyp, fbno, flen, in xfs_extent_busy_reuse()
352 struct xfs_extent_busy *busyp = in xfs_extent_busy_trim() local
355 xfs_agblock_t bbno = busyp->bno; in xfs_extent_busy_trim()
356 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_trim()
371 !(busyp->flags & XFS_EXTENT_BUSY_DISCARDED)) { in xfs_extent_busy_trim()
373 busyp, fbno, flen, in xfs_extent_busy_trim()
526 struct xfs_extent_busy *busyp) in xfs_extent_busy_clear_one() argument
528 if (busyp->length) { in xfs_extent_busy_clear_one()
529 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one()
530 busyp->length); in xfs_extent_busy_clear_one()
531 rb_erase(&busyp->rb_node, &pag->pagb_tree); in xfs_extent_busy_clear_one()
534 list_del_init(&busyp->list); in xfs_extent_busy_clear_one()
535 kmem_free(busyp); in xfs_extent_busy_clear_one()
564 struct xfs_extent_busy *busyp, *n; in xfs_extent_busy_clear() local
569 list_for_each_entry_safe(busyp, n, list, list) { in xfs_extent_busy_clear()
570 if (busyp->agno != agno) { in xfs_extent_busy_clear()
573 agno = busyp->agno; in xfs_extent_busy_clear()
579 if (do_discard && busyp->length && in xfs_extent_busy_clear()
580 !(busyp->flags & XFS_EXTENT_BUSY_SKIP_DISCARD)) { in xfs_extent_busy_clear()
581 busyp->flags = XFS_EXTENT_BUSY_DISCARDED; in xfs_extent_busy_clear()
583 xfs_extent_busy_clear_one(mp, pag, busyp); in xfs_extent_busy_clear()