Lines Matching refs:rc_tree
69 avl_create(&rc->rc_tree, zfs_refcount_compare, sizeof (reference_t), in zfs_refcount_create()
99 while ((ref = avl_destroy_nodes(&rc->rc_tree, &cookie)) != NULL) in zfs_refcount_destroy_many()
101 avl_destroy(&rc->rc_tree); in zfs_refcount_destroy_many()
144 avl_add(&rc->rc_tree, ref); in zfs_refcount_add_many()
185 ref = avl_find(&rc->rc_tree, &s, NULL); in zfs_refcount_remove_many()
191 avl_remove(&rc->rc_tree, ref); in zfs_refcount_remove_many()
244 avl_swap(&tree, &src->rc_tree); in zfs_refcount_transfer()
251 if (avl_is_empty(&dst->rc_tree)) in zfs_refcount_transfer()
252 avl_swap(&dst->rc_tree, &tree); in zfs_refcount_transfer()
254 avl_add(&dst->rc_tree, ref); in zfs_refcount_transfer()
275 ref = avl_find(&rc->rc_tree, &s, NULL); in zfs_refcount_transfer_ownership_many()
278 avl_update(&rc->rc_tree, ref); in zfs_refcount_transfer_ownership_many()
309 ref = avl_find(&rc->rc_tree, &s, &idx); in zfs_refcount_held()
311 ref = avl_nearest(&rc->rc_tree, idx, AVL_AFTER); in zfs_refcount_held()
336 ref = avl_find(&rc->rc_tree, &s, &idx); in zfs_refcount_not_held()
338 ref = avl_nearest(&rc->rc_tree, idx, AVL_AFTER); in zfs_refcount_not_held()