From: Liam R. Howlett Date: Fri, 18 Jan 2019 19:46:54 +0000 (-0500) Subject: maple_node: Fix comments X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cd6064ab1f03a2202bdb8c3b0bcf72446513be4b;p=users%2Fjedix%2Flinux-maple.git maple_node: Fix comments Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 76096601e097e..2f5af8ecfc0ee 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -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;