From: Liam R. Howlett Date: Fri, 10 Oct 2025 16:47:54 +0000 (-0400) Subject: cp_leaf_init comment fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0bc6d5403a56faaa7213b4699e81eb68d6efb58e;p=users%2Fjedix%2Flinux-maple.git cp_leaf_init comment fix Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index ba9007263e99..e91e9f5a8cfb 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -2883,7 +2883,7 @@ dead_node: } /* - * spanning_leaf_init() - Initialize a maple_copy node for the leaf level of a + * cp_leaf_init() - Initialize a maple_copy node for the leaf level of a * spanning store * @cp: The maple copy node * @mas: The maple state @@ -2896,6 +2896,7 @@ static inline void cp_leaf_init(struct maple_copy *cp, { unsigned char end = 0; + cp->height = 1; /* Create entries to insert including split entries to left and right */ if (l_wr_mas->r_min < mas->index) { end++;