]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_node: Fix comments
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 18 Jan 2019 19:46:54 +0000 (14:46 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:55:18 +0000 (14:55 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 76096601e097ede055b0d3f6ba77f10ba7f80374..2f5af8ecfc0ee3400d5174341a7ec3a3786b86cb 100644 (file)
@@ -780,12 +780,14 @@ static int _ma_insert(struct ma_state *mas, void *entry, unsigned char slot)
        p_mr64 = mr64;
        p_mn = mt_to_node(mas->node);
 
-       /* Creates a new node and copies until slot (inclusively) */
+       /* Figure out if this is an append or not.
+        * Appending does not need to create a new node. */
        if (slot == o_end) {
                o_end = n_end; /* Appending */
        } else {
                /* Not appending */
                if (p_mr64 == mr64) {
+                       /* Creates a new node and copies until slot (inclusively) */
                        mr64 = mas_partial_copy(mas, slot);
                        if (mas_is_err(mas))
                                return 0;