From: Liam R. Howlett Date: Sat, 5 Dec 2020 20:36:34 +0000 (-0500) Subject: maple_tree: Remove BUG_ON() debug X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=97b2f1d7442950dbfd40abb73f3a4fcc1ba5cbcd;p=users%2Fjedix%2Flinux-maple.git maple_tree: Remove BUG_ON() debug Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 1b678ef90c05..8d8e16f8eb36 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -861,7 +861,6 @@ static inline struct maple_node *mas_pop_node(struct ma_state *mas) } 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; @@ -2350,7 +2349,6 @@ static inline int mas_spanning_rebalance(struct ma_state *mas, 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--) { @@ -2467,7 +2465,6 @@ static inline int mas_rebalance(struct ma_state *mas, 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; @@ -3193,8 +3190,6 @@ static inline int mas_spanning_store(struct ma_state *mas, void *entry) 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;