mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
bcachefs: Fix an assertion when nothing to replay
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6357d6071f
commit
2f194e1697
|
|
@ -449,7 +449,8 @@ static int bch2_journal_replay(struct bch_fs *c,
|
|||
|
||||
sort(keys.d, keys.nr, sizeof(keys.d[0]), journal_sort_seq_cmp, NULL);
|
||||
|
||||
replay_now_at(j, keys.journal_seq_base);
|
||||
if (keys.nr)
|
||||
replay_now_at(j, keys.journal_seq_base);
|
||||
|
||||
for_each_journal_key(keys, i) {
|
||||
if (!i->level)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user