diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-18 10:15:35 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-03 12:44:01 -0400 |
commit | 853eacca8976a4b521e9e18b2d95bea37835e920 (patch) | |
tree | 404267c6328cc84215029f13e4987fa48c984968 | |
parent | ce42a1466147be76f1b3b9b994d696f761a2c5ec (diff) |
bcachefs: fix ja->cur_idx use while reading journal
-rw-r--r-- | fs/bcachefs/journal_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 6c16aabf7096..52498627f70e 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -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; |