From 1ed51305597083644351cd5a86e6d8e30fe8a596 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 18 Jan 2019 14:46:54 -0500 Subject: [PATCH] maple_node: Fix comments Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 76096601e097..2f5af8ecfc0e 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; -- 2.50.1