Commit 9314e2f
Kent Overstreet
bcachefs: Fix btree iter flags in data move (2)
Data move -> move_get_io_opts -> bch2_get_update_rebalance_opts
requires a not_extents iterator; this fixes the path where we're walking
the extents btree and chase a reflink pointer into the reflink btree.
bch2_lookup_indirect_extent() requires working with an extents iterator
(due to peek_slot() semantics), so we implement
bch2_lookup_indirect_extent_for_move().
This is simplified because there's no need to report
indirect_extent_missing_errors here, that can be deferred until fsck or
when a user reads that data.
Reported-by: Maël Kerbiriou <mael.kerbiriou@free.fr>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 19ff84b commit 9314e2f
1 file changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
531 | 562 | | |
532 | 563 | | |
533 | 564 | | |
| |||
592 | 623 | | |
593 | 624 | | |
594 | 625 | | |
595 | | - | |
596 | 626 | | |
597 | 627 | | |
598 | | - | |
| 628 | + | |
599 | 629 | | |
600 | 630 | | |
601 | 631 | | |
602 | 632 | | |
603 | 633 | | |
604 | 634 | | |
605 | | - | |
| 635 | + | |
606 | 636 | | |
607 | 637 | | |
608 | 638 | | |
| |||
611 | 641 | | |
612 | 642 | | |
613 | 643 | | |
614 | | - | |
615 | 644 | | |
616 | 645 | | |
617 | 646 | | |
| |||
0 commit comments