Lines Matching refs:removefrom
805 range_tree_t *removefrom, range_tree_t *addto) in range_tree_remove_xor_add_segment() argument
809 rs_set_start(&starting_rs, removefrom, start); in range_tree_remove_xor_add_segment()
810 rs_set_end_raw(&starting_rs, removefrom, rs_get_start_raw(&starting_rs, in range_tree_remove_xor_add_segment()
811 removefrom) + 1); in range_tree_remove_xor_add_segment()
813 range_seg_t *curr = zfs_btree_find(&removefrom->rt_root, in range_tree_remove_xor_add_segment()
817 curr = zfs_btree_next(&removefrom->rt_root, &where, &where); in range_tree_remove_xor_add_segment()
826 if (end <= rs_get_start(curr, removefrom)) { in range_tree_remove_xor_add_segment()
831 uint64_t overlap_start = MAX(rs_get_start(curr, removefrom), in range_tree_remove_xor_add_segment()
833 uint64_t overlap_end = MIN(rs_get_end(curr, removefrom), in range_tree_remove_xor_add_segment()
838 rs_copy(curr, &rs, removefrom); in range_tree_remove_xor_add_segment()
840 range_tree_remove(removefrom, overlap_start, overlap_size); in range_tree_remove_xor_add_segment()
846 next = zfs_btree_find(&removefrom->rt_root, &rs, &where); in range_tree_remove_xor_add_segment()
859 removefrom)); in range_tree_remove_xor_add_segment()
862 next = zfs_btree_next(&removefrom->rt_root, &where, &where); in range_tree_remove_xor_add_segment()
879 range_tree_remove_xor_add(range_tree_t *rt, range_tree_t *removefrom, in range_tree_remove_xor_add() argument
886 rs_get_end(rs, rt), removefrom, addto); in range_tree_remove_xor_add()