diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-03 21:09:52 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-03 23:17:31 -0900 |
commit | 171ee48e57be78f4e95954c99851553fa523bf91 (patch) | |
tree | 5a54443f074f8f7922eda1451743bb9d2f60368e /libbcache/notify.c | |
parent | a5b5eba7f788bb77cf57f9c94f3474a2d439ab0b (diff) |
Delete more unused shim code, update bcache code
Diffstat (limited to 'libbcache/notify.c')
-rw-r--r-- | libbcache/notify.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libbcache/notify.c b/libbcache/notify.c index 3a50f8fb..00b7999a 100644 --- a/libbcache/notify.c +++ b/libbcache/notify.c @@ -47,28 +47,28 @@ static void notify_put(struct cache_set *c) mutex_unlock(&c->uevent_lock); } -void bch_notify_cache_set_read_write(struct cache_set *c) +void bch_notify_fs_read_write(struct cache_set *c) { notify_get(c); notify_var(c, "STATE=active"); notify_put(c); } -void bch_notify_cache_set_read_only(struct cache_set *c) +void bch_notify_fs_read_only(struct cache_set *c) { notify_get(c); notify_var(c, "STATE=readonly"); notify_put(c); } -void bch_notify_cache_set_stopped(struct cache_set *c) +void bch_notify_fs_stopped(struct cache_set *c) { notify_get(c); notify_var(c, "STATE=stopped"); notify_put(c); } -void bch_notify_cache_read_write(struct cache *ca) +void bch_notify_dev_read_write(struct cache *ca) { struct cache_set *c = ca->set; @@ -77,7 +77,7 @@ void bch_notify_cache_read_write(struct cache *ca) notify_put(c); } -void bch_notify_cache_read_only(struct cache *ca) +void bch_notify_dev_read_only(struct cache *ca) { struct cache_set *c = ca->set; @@ -86,7 +86,7 @@ void bch_notify_cache_read_only(struct cache *ca) notify_put(c); } -void bch_notify_cache_added(struct cache *ca) +void bch_notify_dev_added(struct cache *ca) { struct cache_set *c = ca->set; @@ -95,7 +95,7 @@ void bch_notify_cache_added(struct cache *ca) notify_put(c); } -void bch_notify_cache_removing(struct cache *ca) +void bch_notify_dev_removing(struct cache *ca) { struct cache_set *c = ca->set; @@ -104,7 +104,7 @@ void bch_notify_cache_removing(struct cache *ca) notify_put(c); } -void bch_notify_cache_remove_failed(struct cache *ca) +void bch_notify_dev_remove_failed(struct cache *ca) { struct cache_set *c = ca->set; @@ -113,7 +113,7 @@ void bch_notify_cache_remove_failed(struct cache *ca) notify_put(c); } -void bch_notify_cache_removed(struct cache *ca) +void bch_notify_dev_removed(struct cache *ca) { struct cache_set *c = ca->set; @@ -122,7 +122,7 @@ void bch_notify_cache_removed(struct cache *ca) notify_put(c); } -void bch_notify_cache_error(struct cache *ca, bool fatal) +void bch_notify_dev_error(struct cache *ca, bool fatal) { struct cache_set *c = ca->set; |