summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-02-24 18:07:21 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-02-24 18:07:21 -0900
commitafc833aa34bec1d22bec2496450eb031dc68aa2e (patch)
treedba1c8e6c80ada62d207397fd431a369f73c5943
parentce56a4da21156d2f29ec65a6858e65b63a968e7e (diff)
downloadlinux-bcache-bcachefs-v0.tar.zst
bcache: fix a minor bug in journal read pathbcachefs-v0
Only triggered when we'd seen an invalid journal entry, so not likely to have affected anyone. This code should be refactored.
-rw-r--r--drivers/md/bcache/journal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c
index 91bc4ac557e6..d89c5339590f 100644
--- a/drivers/md/bcache/journal.c
+++ b/drivers/md/bcache/journal.c
@@ -732,10 +732,10 @@ reread:
if (le64_to_cpu(j->seq) > *seq)
*seq = le64_to_cpu(j->seq);
-next_block:
+
blocks = __set_blocks(j, le32_to_cpu(j->u64s),
block_bytes(c));
-
+next_block:
pr_debug("next");
bucket_offset += blocks * c->sb.block_size;
sectors_read -= blocks * c->sb.block_size;