]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Drop depth from split operation.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 1 Feb 2019 18:09:56 +0000 (13:09 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 31 Jul 2019 14:52:39 +0000 (10:52 -0400)
It is not used.

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

index 05035db5facd9afd4cb8e44d29d87f059db883de..a3ddd43965b0504b67da07b5b4ec9eb88d227c41 100644 (file)
@@ -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;