]> 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>
Fri, 3 Oct 2025 20:56:13 +0000 (16: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 0078272e6e51e5cb4deb38114198f809bacdb7b6..5479e09b4d394514a7af7e8af3d4161421d5f485 100644 (file)
@@ -3832,6 +3832,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);