mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08: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
@ -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 New Issue
Block a user