]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
cp_leaf_init comment fix
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 10 Oct 2025 16:47:54 +0000 (12:47 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 10 Oct 2025 16:49:15 +0000 (12:49 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index ba9007263e99199e0cb95bb504fb5f046f392024..e91e9f5a8cfb078c168ec260b31730b5199125a5 100644 (file)
@@ -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++;