Commit cec136d
Kent Overstreet
bcachefs: Fix topology errors on split after merge
If a btree split picks a pivot that's being deleted by a btree node
merge, we're going to have problems.
Fix this by checking if the pivot is being deleted, the same as we check
for deletions in journal replay keys.
Found by single_devic.ktest small_nodes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent d335bb3 commit cec136d
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1437 | 1446 | | |
1438 | 1447 | | |
1439 | 1448 | | |
1440 | 1449 | | |
1441 | 1450 | | |
1442 | 1451 | | |
1443 | 1452 | | |
1444 | | - | |
| 1453 | + | |
| 1454 | + | |
1445 | 1455 | | |
1446 | 1456 | | |
1447 | 1457 | | |
| |||
1476 | 1486 | | |
1477 | 1487 | | |
1478 | 1488 | | |
1479 | | - | |
| 1489 | + | |
| 1490 | + | |
1480 | 1491 | | |
1481 | 1492 | | |
1482 | 1493 | | |
| |||
1603 | 1614 | | |
1604 | 1615 | | |
1605 | 1616 | | |
1606 | | - | |
| 1617 | + | |
1607 | 1618 | | |
1608 | 1619 | | |
1609 | 1620 | | |
| |||
0 commit comments