From: Liam R. Howlett Date: Sun, 31 Aug 2025 00:38:17 +0000 (-0400) Subject: node_copy setting wrong parent slot X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5b812e5590ecba8288f26291f085013b8d1ef057;p=users%2Fjedix%2Flinux-maple.git node_copy setting wrong parent slot Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index d6069d6c899a..6a00380b7d35 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -2925,7 +2925,7 @@ unsigned long node_copy(struct ma_state *mas, struct maple_node *src, for (int i = 0; i < size; i++) { printk("set slot %u parent\n", i); printk("d_slots = %p\n", d_slots[i]); - mas_set_parent(mas, d_slots[i], edst, i); + mas_set_parent(mas, d_slots[i], edst, d_start + i); } }