From de0b4ffb125346985295f3df468c414b520c8602 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Thu, 16 Jul 2020 21:11:03 -0400 Subject: [PATCH] maple_tree: wip, add maple_subtree_state Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index aa1c154e6cf3..9cfaae1c6809 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -2034,6 +2034,8 @@ static inline int mas_combine_separate(struct ma_state *mas, mast->orig_l->last = mast->orig_l->max; + if (mast->bn->b_end > mt_min_slot_cnt(mast->orig_l->node)) + continue; // Attempt to balance from this parent if (mast->bn->b_end - 1 < mt_min_slot_cnt(mast->orig_l->node)) { unsigned char end; -- 2.50.1