]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ugg, r_parent max check was wrong
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 27 May 2025 20:19:02 +0000 (16:19 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 27 May 2025 20:19:02 +0000 (16:19 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c

index a24847a677ef034e1c68694b28ddc2f23c94ca0d..8d93e64727fe22a2715559509e8794f72f1ee940 100644 (file)
@@ -5170,7 +5170,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas)
                                other = parent;
                                printk("Looks like there is a left sibling\n");
                                printk("mas is now %p[%u]\n", mas_mn(mas), mas->offset);
-                       } else if (r_parent.max > ULONG_MAX) {
+                       } else if (r_parent.max < ULONG_MAX) {
                                printk("%d: set src %u\n", __LINE__, 2);
                                src[++max_s] = &other;
                                printk("%d: set src %u\n", __LINE__, max_s);
@@ -5180,6 +5180,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas)
                                printk("Looks like there is a right cousin\n");
                                BUG_ON(1);
                        } else {
+       fflush(stdout);
                                BUG_ON(!parent.min);
                                printk("%d: set src %u\n", __LINE__, s);
                                src[0] = &other;