}
if (!node->node_count) { // Single allocation in this node.
- BUG_ON(!node->slot[0]);
mas->alloc = node->slot[0];
mas->alloc->total = node->total - 1;
ret = node;
mast->destroy = &destroy;
l_mas.node = r_mas.node = m_mas.node = MAS_NONE;
- MT_BUG_ON(mas->tree, mast->orig_l->depth != mast->orig_r->depth);
mast->orig_l->depth = 0;
mast_topiary(mast);
while (count--) {
mas_dup_state(&r_mas, mas);
if (mas_next_sibling(&r_mas)) {
- MT_BUG_ON(r_mas.tree, mas_is_none(&r_mas));
mas_mab_cp(&r_mas, 0, mt_slot_count(r_mas.node), b_node, b_end);
r_mas.last = r_mas.index = r_mas.max;
l_mas.offset = 0;
__mas_walk(&l_mas, &range_min, &range_max);
- MT_BUG_ON(mas->tree, l_mas.depth != r_mas.depth);
-
if (!entry) {
mas_extend_null(&l_mas, &r_mas);
mas->index = l_mas.index;