From 0bc6d5403a56faaa7213b4699e81eb68d6efb58e Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 10 Oct 2025 12:47:54 -0400 Subject: [PATCH] cp_leaf_init comment fix Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; -- 2.51.0