From 4b8513df4a4c5d32454e3b9477e4a5488e903131 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 1 Feb 2019 13:09:56 -0500 Subject: [PATCH] maple_tree: Drop depth from split operation. It is not used. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 05035db5facd9..a3ddd43965b05 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -584,8 +584,7 @@ static void ma_link(struct maple_node *new, struct maple_node *parent, ma_adopt_children(new_enc); } -static int ma_split(struct ma_state *mas, unsigned char slot, - unsigned char num) +static int ma_split(struct ma_state *mas, unsigned char slot) { struct maple_node *full = mt_to_node(mas->node); unsigned char split, p_slot = 0, p_end = 0; @@ -608,7 +607,7 @@ static int ma_split(struct ma_state *mas, unsigned char slot, /* Must split the parent */ ma_encoded_parent(mas); mas_update_limits(mas, p_slot); - split = ma_split(mas, p_slot, p_end); + split = ma_split(mas, p_slot); if (mas_is_err(mas)) return 0; if (split < p_slot) @@ -725,7 +724,7 @@ static int _ma_insert(struct ma_state *mas, void *entry, unsigned char slot) n_end++; if (n_end > MAPLE_RANGE64_SLOTS - 1) { - unsigned char split = ma_split(mas, slot, o_end); + unsigned char split = ma_split(mas, slot); if (mas_is_err(mas)) return 0; -- 2.50.1