Commit 1df3108
Kent Overstreet
bcachefs: fsck: Fix oops in key_visible_in_snapshot()
The normal fsck code doesn't call key_visible_in_snapshot() with an
empty list of snapshot IDs seen (the current snapshot ID will always be
on the list), but str_hash_repair_key() ->
bch2_get_snapshot_overwrites() can, and that's totally fine as long as
we check for it.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 3f89076 commit 1df3108
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
732 | | - | |
733 | 731 | | |
734 | 732 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | 733 | | |
740 | 734 | | |
741 | 735 | | |
| |||
751 | 745 | | |
752 | 746 | | |
753 | 747 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 748 | + | |
| 749 | + | |
759 | 750 | | |
760 | 751 | | |
761 | 752 | | |
| |||
0 commit comments