Lines Matching refs:rs_after
295 range_seg_t *rs_before, *rs_after, *rs; in range_tree_add_impl() local
356 rs_after = zfs_btree_next(&rt->rt_root, &where, &where_after); in range_tree_add_impl()
360 merge_after = (rs_after != NULL && rs_get_start(rs_after, rt) <= end + in range_tree_add_impl()
366 bridge_size += rs_get_start(rs_after, rt) - end; in range_tree_add_impl()
371 rt->rt_ops->rtop_remove(rt, rs_after, rt->rt_arg); in range_tree_add_impl()
375 range_tree_stat_decr(rt, rs_after); in range_tree_add_impl()
377 rs_copy(rs_after, &tmp, rt); in range_tree_add_impl()
380 uint64_t after_fill = rs_get_fill(rs_after, rt); in range_tree_add_impl()
387 rs_after = zfs_btree_find(&rt->rt_root, &tmp, &where_after); in range_tree_add_impl()
388 ASSERT3P(rs_after, !=, NULL); in range_tree_add_impl()
389 rs_set_start_raw(rs_after, rt, before_start); in range_tree_add_impl()
390 rs_set_fill(rs_after, rt, after_fill + before_fill + fill); in range_tree_add_impl()
391 rs = rs_after; in range_tree_add_impl()
404 rt->rt_ops->rtop_remove(rt, rs_after, rt->rt_arg); in range_tree_add_impl()
406 range_tree_stat_decr(rt, rs_after); in range_tree_add_impl()
408 uint64_t after_fill = rs_get_fill(rs_after, rt); in range_tree_add_impl()
409 rs_set_start(rs_after, rt, start); in range_tree_add_impl()
410 rs_set_fill(rs_after, rt, after_fill + fill); in range_tree_add_impl()
411 rs = rs_after; in range_tree_add_impl()