2 * Code for sending uevent notifications to user-space.
4 * Copyright 2015 Datera, Inc.
10 #ifndef NO_BCACHE_NOTIFY
12 void bch_notify_fs_read_write(struct cache_set *);
13 void bch_notify_fs_read_only(struct cache_set *);
14 void bch_notify_fs_stopped(struct cache_set *);
16 void bch_notify_dev_read_write(struct cache *);
17 void bch_notify_dev_read_only(struct cache *);
18 void bch_notify_dev_added(struct cache *);
19 void bch_notify_dev_removing(struct cache *);
20 void bch_notify_dev_removed(struct cache *);
21 void bch_notify_dev_remove_failed(struct cache *);
22 void bch_notify_dev_error(struct cache *, bool);
26 static inline void bch_notify_fs_read_write(struct cache_set *c) {}
27 static inline void bch_notify_fs_read_only(struct cache_set *c) {}
28 static inline void bch_notify_fs_stopped(struct cache_set *c) {}
30 static inline void bch_notify_dev_read_write(struct cache *ca) {}
31 static inline void bch_notify_dev_read_only(struct cache *ca) {}
32 static inline void bch_notify_dev_added(struct cache *ca) {}
33 static inline void bch_notify_dev_removing(struct cache *ca) {}
34 static inline void bch_notify_dev_removed(struct cache *ca) {}
35 static inline void bch_notify_dev_remove_failed(struct cache *ca) {}
36 static inline void bch_notify_dev_error(struct cache *ca, bool b) {}
40 #endif /* _NOTIFY_H */