From: Liam R. Howlett Date: Thu, 31 Jan 2019 16:18:46 +0000 (-0500) Subject: maple_tree: Remove depth from ma_split. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f248f3aee218b959bab7462512b459fab2c1724f;p=users%2Fjedix%2Flinux-maple.git maple_tree: Remove depth from ma_split. the depth is no longer use, so drop it. Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 94db306ca760..b891d8a89a5f 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -575,7 +575,7 @@ static void ma_link(struct maple_node *new, struct maple_node *parent, } static int ma_split(struct ma_state *mas, unsigned char slot, - unsigned char num, int depth) + unsigned char num) { struct maple_node *full = mt_to_node(mas->node); unsigned char split, p_slot = 0, p_end = 0; @@ -598,7 +598,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, 1); + split = ma_split(mas, p_slot, p_end); if (mas_is_err(mas)) return 0; if (split < p_slot) @@ -715,7 +715,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, 0); + unsigned char split = ma_split(mas, slot, o_end); if (mas_is_err(mas)) return 0;