mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
bcachefs: fix ja->cur_idx use while reading journal
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
d3bb629d04
commit
a36d3685bb
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ static void bch2_journal_read_device(struct closure *cl)
|
|||
while (ja->bucket_seq[ja->cur_idx] > min_seq &&
|
||||
ja->bucket_seq[ja->cur_idx] >
|
||||
ja->bucket_seq[(ja->cur_idx + 1) % ja->nr])
|
||||
ja->cur_idx++;
|
||||
ja->cur_idx = (ja->cur_idx + 1) % ja->nr;
|
||||
|
||||
ja->sectors_free = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue