]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Remove depth from ma_split.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 31 Jan 2019 16:18:46 +0000 (11:18 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 31 Jul 2019 14:52:38 +0000 (10:52 -0400)
the depth is no longer use, so drop it.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 94db306ca760a8cfe6aab2948bc24bdb722f20db..b891d8a89a5f20f87dce3101893520588dd6b358 100644 (file)
@@ -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;