Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
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;