mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
Update bcachefs sources to 7a06c01fa3 bcachefs: Fix for getting stuck in journal replay
This commit is contained in:
parent
f89eb5a288
commit
51d44e575c
@ -1 +1 @@
|
||||
de2fbf8b875fd8e61cc9a583d073f5527e3cb8e7
|
||||
7a06c01fa30b52389bb050244ecfae48026efaa1
|
||||
|
@ -556,7 +556,8 @@ static int journal_keys_sort(struct bch_fs *c)
|
||||
static void replay_now_at(struct journal *j, u64 seq)
|
||||
{
|
||||
BUG_ON(seq < j->replay_journal_seq);
|
||||
BUG_ON(seq > j->replay_journal_seq_end);
|
||||
|
||||
seq = min(seq, j->replay_journal_seq_end);
|
||||
|
||||
while (j->replay_journal_seq < seq)
|
||||
bch2_journal_pin_put(j, j->replay_journal_seq++);
|
||||
@ -629,8 +630,7 @@ static int bch2_journal_replay(struct bch_fs *c)
|
||||
|
||||
cond_resched();
|
||||
|
||||
if (!k->allocated)
|
||||
replay_now_at(j, keys->journal_seq_base + k->journal_seq);
|
||||
replay_now_at(j, keys->journal_seq_base + k->journal_seq);
|
||||
|
||||
ret = bch2_trans_do(c, NULL, NULL,
|
||||
BTREE_INSERT_LAZY_RW|
|
||||
|
Loading…
Reference in New Issue
Block a user