diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-20 20:12:53 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-20 20:12:53 -0400 |
commit | b9991fc972e2263998fe85d55c368cd0970209cc (patch) | |
tree | 9c94403bf0d1ae8fd642375cb67d59e51049c1b7 | |
parent | 2d1b3cfee621633a6d488721df39652b123ffa31 (diff) |
bucket_seq debugjournal_debug
-rw-r--r-- | fs/bcachefs/journal_io.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 27996f39c4c3..94d1f0d20299 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -966,8 +966,13 @@ static void bch2_journal_read_device(struct closure *cl) } mutex_unlock(&jlist->lock); - BUG_ON(ja->bucket_seq[ja->cur_idx] && - ja->sectors_free == ca->mi.bucket_size); + if (ja->bucket_seq[ja->cur_idx] && + ja->sectors_free == ca->mi.bucket_size) { + pr_info("cur_idx %u/%u", ja->cur_idx, ja->nr); + for (i = 0; i < ja->nr; i++) + pr_info("bucket_seq[%u] = %llu", i, ja->bucket_seq[i]); + ja->sectors_free = 0; + } /* * Set dirty_idx to indicate the entire journal is full and needs to be |