aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-04-12 11:37:33 -0700
committerKent Overstreet <koverstreet@google.com>2013-04-12 11:37:33 -0700
commit849ce473389cd827268c7d6781ba5082cbac162d (patch)
tree9730f2ced70891dd84e78f5e833a8c55775162df
parent1407bb0c2adb57dde6e927e9c3e3c60c05b439ba (diff)
downloadbcache-tools-849ce473389cd827268c7d6781ba5082cbac162d.tar.gz
use SB_JOURNAL_BUCKETS for superblock
-rw-r--r--bcache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bcache.h b/bcache.h
index 6e2a7ea7..25e3047f 100644
--- a/bcache.h
+++ b/bcache.h
@@ -30,6 +30,7 @@ static const char bcache_magic[] = {
#define SB_SECTOR 8
#define SB_LABEL_SIZE 32
+#define SB_JOURNAL_BUCKETS 256U
#define BDEV_DATA_START_DEFAULT 16 /* sectors */
struct cache_sb {
@@ -80,7 +81,7 @@ struct cache_sb {
uint16_t njournal_buckets;
uint16_t keys;
};
- uint64_t d[]; /* journal buckets */
+ uint64_t d[SB_JOURNAL_BUCKETS]; /* journal buckets */
};
BITMASK(SB_BDEV, struct cache_sb, version, 0, 1);