summaryrefslogtreecommitdiff
path: root/libbcache/journal_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/journal_types.h')
-rw-r--r--libbcache/journal_types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbcache/journal_types.h b/libbcache/journal_types.h
index e3698b5..5c95e37 100644
--- a/libbcache/journal_types.h
+++ b/libbcache/journal_types.h
@@ -186,7 +186,7 @@ struct journal {
* ugh: need to get prio_buckets converted over to the eventual new
* transaction machinery
*/
- __le64 prio_buckets[MAX_CACHES_PER_SET];
+ __le64 prio_buckets[BCH_SB_MEMBERS_MAX];
unsigned nr_prio_buckets;
unsigned write_delay_ms;
@@ -208,7 +208,7 @@ struct journal {
/*
* Embedded in struct cache. First three fields refer to the array of journal
- * buckets, in cache_sb.
+ * buckets, in bch_sb.
*/
struct journal_device {
/*
@@ -229,6 +229,8 @@ struct journal_device {
* sufficient to read:
*/
unsigned last_idx;
+ unsigned nr;
+ u64 *buckets;
/* Bio for journal reads/writes to this device */
struct bio *bio;