From: Liam R. Howlett Date: Tue, 26 Aug 2025 16:10:00 +0000 (-0400) Subject: node finalise new root\n X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5435d00a3de3a2d2a9a1e7176d75c2e1563b8446;p=users%2Fjedix%2Flinux-maple.git node finalise new root\n Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index d935444cf9cd..213653838ce0 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3300,6 +3300,7 @@ static bool spanning_ascend(struct maple_copy *cp, struct ma_state *mas, if (cp->d_count != 1) { enum maple_type mt = maple_arange_64; + printk("New root\n"); if (!mt_is_alloc(mas->tree)) mt = maple_range_64; @@ -3309,7 +3310,7 @@ static bool spanning_ascend(struct maple_copy *cp, struct ma_state *mas, spanning_init_cp_src(cp); node_copy(mas, cp->src[0].node, 0, cp->data, cp->max, maple_copy, cp->dst[0].node, 0, mt); - printk("New root\n"); + node_finalise(cp->dst[0].node, mt, cp->end); cp->slot[0] = mt_mk_node(cp->dst[0].node, mt); }