aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/bcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r--drivers/md/bcache/bcache.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h
index 964353c5329d..dbdbca5a9591 100644
--- a/drivers/md/bcache/bcache.h
+++ b/drivers/md/bcache/bcache.h
@@ -197,7 +197,7 @@ struct bucket {
197 uint8_t disk_gen; 197 uint8_t disk_gen;
198 uint8_t last_gc; /* Most out of date gen in the btree */ 198 uint8_t last_gc; /* Most out of date gen in the btree */
199 uint8_t gc_gen; 199 uint8_t gc_gen;
200 uint16_t gc_mark; 200 uint16_t gc_mark; /* Bitfield used by GC. See below for field */
201}; 201};
202 202
203/* 203/*
@@ -209,7 +209,8 @@ BITMASK(GC_MARK, struct bucket, gc_mark, 0, 2);
209#define GC_MARK_RECLAIMABLE 0 209#define GC_MARK_RECLAIMABLE 0
210#define GC_MARK_DIRTY 1 210#define GC_MARK_DIRTY 1
211#define GC_MARK_METADATA 2 211#define GC_MARK_METADATA 2
212BITMASK(GC_SECTORS_USED, struct bucket, gc_mark, 2, 14); 212BITMASK(GC_SECTORS_USED, struct bucket, gc_mark, 2, 13);
213BITMASK(GC_MOVE, struct bucket, gc_mark, 15, 1);
213 214
214#include "journal.h" 215#include "journal.h"
215#include "stats.h" 216#include "stats.h"
@@ -371,14 +372,14 @@ struct cached_dev {
371 unsigned char writeback_percent; 372 unsigned char writeback_percent;
372 unsigned writeback_delay; 373 unsigned writeback_delay;
373 374
374 int writeback_rate_change;
375 int64_t writeback_rate_derivative;
376 uint64_t writeback_rate_target; 375 uint64_t writeback_rate_target;
376 int64_t writeback_rate_proportional;
377 int64_t writeback_rate_derivative;
378 int64_t writeback_rate_change;
377 379
378 unsigned writeback_rate_update_seconds; 380 unsigned writeback_rate_update_seconds;
379 unsigned writeback_rate_d_term; 381 unsigned writeback_rate_d_term;
380 unsigned writeback_rate_p_term_inverse; 382 unsigned writeback_rate_p_term_inverse;
381 unsigned writeback_rate_d_smooth;
382}; 383};
383 384
384enum alloc_watermarks { 385enum alloc_watermarks {
@@ -444,7 +445,6 @@ struct cache {
444 * call prio_write() to keep gens from wrapping. 445 * call prio_write() to keep gens from wrapping.
445 */ 446 */
446 uint8_t need_save_prio; 447 uint8_t need_save_prio;
447 unsigned gc_move_threshold;
448 448
449 /* 449 /*
450 * If nonzero, we know we aren't going to find any buckets to invalidate 450 * If nonzero, we know we aren't going to find any buckets to invalidate