MA_STATE(l_mas, mas->tree, mas->index, mas->last);
MA_STATE(r_mas, mas->tree, mas->index, mas->last);
- trace_mas_rebalance(mas, b_node);
+ trace_mas_rebalance(mas);
mas_node_cnt(mas, 1 + empty_cnt * 2);
if (mas_is_err(mas))
int height = 0;
unsigned char mid_split;
- trace_mas_split(mas);
MA_STATE(l_mas, mas->tree, mas->index, mas->last);
MA_STATE(r_mas, mas->tree, mas->index, mas->last);
MA_STATE(prev_l_mas, mas->tree, mas->index, mas->last);
MA_STATE(prev_r_mas, mas->tree, mas->index, mas->last);
MA_TOPIARY(mat, mas->tree);
+ trace_mas_split(mas);
// Allocation failures will happen early.
mas_node_cnt(mas, 1 + mas->full_cnt * 2);
if (mas_is_err(mas))
struct maple_subtree_state mast;
int node_cnt = 0;
- trace_mas_spanning_store(mas, entry);
// Holds new left and right sub-tree
MA_STATE(l_mas, mas->tree, mas->index, mas->index);
MA_STATE(r_mas, mas->tree, mas->index, mas->index);
+ trace_mas_spanning_store(mas);
// Leaf nodes
if (mas->full_cnt > 0)
node_cnt = 1 + mas->full_cnt * 2; // For split upwards.