diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 08:27:30 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 09:14:11 -0900 |
commit | ac1b32acb4ca8c59c0e4911a8d3b27fd72dc54af (patch) | |
tree | e73a6ea5ddb6f3ece6a3e6c069ffa9ecc5e1ee44 /libbcache/bcache.h | |
parent | a17f7bcec7ed810a247c24e56229af8f43a9a6ae (diff) |
cmd_device_fail
Add a comamnd for setting a device as failed, update bcache sources
Diffstat (limited to 'libbcache/bcache.h')
-rw-r--r-- | libbcache/bcache.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libbcache/bcache.h b/libbcache/bcache.h index 5b668c71..c20a1701 100644 --- a/libbcache/bcache.h +++ b/libbcache/bcache.h @@ -347,18 +347,10 @@ struct cache_member_rcu { struct cache_member_cpu m[]; }; -/* cache->flags: */ -enum { - BCH_DEV_REMOVING, - BCH_DEV_FORCE_REMOVE, -}; - struct cache { struct percpu_ref ref; struct rcu_head free_rcu; struct work_struct free_work; - struct work_struct remove_work; - unsigned long flags; struct cache_set *set; @@ -424,8 +416,8 @@ struct cache { * second contains a saved copy of the stats from the beginning * of GC. */ - struct bucket_stats_cache __percpu *bucket_stats_percpu; - struct bucket_stats_cache bucket_stats_cached; + struct bch_dev_usage __percpu *bucket_stats_percpu; + struct bch_dev_usage bucket_stats_cached; atomic_long_t saturated_count; size_t inc_gen_needs_gc; @@ -659,8 +651,8 @@ struct cache_set { atomic64_t sectors_available; - struct bucket_stats_cache_set __percpu *bucket_stats_percpu; - struct bucket_stats_cache_set bucket_stats_cached; + struct bch_fs_usage __percpu *bucket_stats_percpu; + struct bch_fs_usage bucket_stats_cached; struct lglock bucket_stats_lock; struct mutex bucket_lock; |