summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-12-18 11:54:56 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-01-18 21:41:29 -0900
commite69ab7fc6c99362ed763d1a166009b26da2befc9 (patch)
tree91f6b2728a3e79a8971bab6a703d92e6173f8804
parent554f46241edf9a2c43af7fd5b7d54a70d91aac20 (diff)
bcache: a bit more journal validation
-rw-r--r--drivers/md/bcache/journal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c
index 4239844b6dec..4734caec178d 100644
--- a/drivers/md/bcache/journal.c
+++ b/drivers/md/bcache/journal.c
@@ -610,6 +610,11 @@ static enum {
"invalid journal seq blacklist entry: bad size");
break;
+ default:
+ cache_inconsistent(ca,
+ "invalid journal entry type %llu",
+ JOURNAL_ENTRY_TYPE(entry));
+ break;
}
}