From: Liam R. Howlett Date: Fri, 1 Feb 2019 18:09:56 +0000 (-0500) Subject: maple_tree: Drop depth from split operation. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a6d8417dad62ca67b6324aa2311fe3fb0175c174;p=users%2Fjedix%2Flinux-maple.git maple_tree: Drop depth from split operation. It is not used. Signed-off-by: Liam R. Howlett --- 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;