The max value has been updated in mab_mas_cp() on copying the left part. Not necessary to update it again. Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx> --- lib/maple_tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 75e294d97e51..31964c5c677a 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3177,7 +3177,6 @@ static inline void mast_split_data(struct maple_subtree_state *mast, mte_set_pivot(mast->r->node, 0, mast->r->max); mab_mas_cp(mast->bn, split + 1, mast->bn->b_end, mast->r, false); mast->l->offset = mte_parent_slot(mas->node); - mast->l->max = mast->bn->pivot[split]; mast->r->min = mast->l->max + 1; if (mte_is_leaf(mas->node)) return; -- 2.34.1