]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Update bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion...
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 12 Apr 2022 03:03:41 +0000 (23:03 -0400)
committerKent Overstreet <kent.overstreet@gmail.com>
Tue, 12 Apr 2022 03:03:41 +0000 (23:03 -0400)
.bcachefs_revision
libbcachefs/journal_io.c

index 7e508a096ba88976f6ed8bdacb3dbc47d06561fc..14d539bb46dae9c9dc084911762ab4812d23da81 100644 (file)
@@ -1 +1 @@
-fb8a27f6d45d869450c676e743cff4b03bb713ba
+de2fbf8b875fd8e61cc9a583d073f5527e3cb8e7
index 6456e8b8d6cc2b04faf9bbb0d98732b106f4d56d..7c0aed9d92f3fe5bee35fbe065e89fb2d432d04d 100644 (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, "cur_idx %u/%u", ja->cur_idx, ja->nr);
                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]);
                }
                ja->sectors_free = 0;