]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Correct right ma_wr_state end pivot in
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 3 Oct 2025 20:56:13 +0000 (16:56 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Oct 2025 18:56:33 +0000 (14:56 -0400)
mas_wr_spanning_store()

The end_piv will be needed in the next patch set and has not been set
correctly in this code path.  Correct the oversight before using it.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index 79bce886127302a3167937272e70b4f763a42e3a..923f42ed27cceb64efe3ac1772aa4b3e3871f1b1 100644 (file)
@@ -3492,6 +3492,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas)
        r_mas.index = r_mas.last;
        mas_wr_walk_index(&r_wr_mas);
        r_mas.last = r_mas.index = mas->last;
+       r_wr_mas.end_piv = r_wr_mas.r_max;
 
        /* Set up left side. */
        mas_wr_walk_index(wr_mas);