Update bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion to error message

This commit is contained in:
Kent Overstreet 2022-04-11 23:03:41 -04:00
parent 04ad4ade4c
commit f89eb5a288
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
fb8a27f6d45d869450c676e743cff4b03bb713ba de2fbf8b875fd8e61cc9a583d073f5527e3cb8e7

View File

@ -989,7 +989,7 @@ static void bch2_journal_read_device(struct closure *cl)
bch_err(c, "ja->sectors_free == ca->mi.bucket_size"); bch_err(c, "ja->sectors_free == ca->mi.bucket_size");
bch_err(c, "cur_idx %u/%u", ja->cur_idx, ja->nr); bch_err(c, "cur_idx %u/%u", ja->cur_idx, ja->nr);
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
unsigned idx = ja->cur_idx - 1 + i; unsigned idx = (ja->cur_idx + ja->nr - 1 + i) % ja->nr;
bch_err(c, "bucket_seq[%u] = %llu", idx, ja->bucket_seq[idx]); bch_err(c, "bucket_seq[%u] = %llu", idx, ja->bucket_seq[idx]);
} }
ja->sectors_free = 0; ja->sectors_free = 0;