mm, debug: replace dump_flags() with the new printk formats
[linux/fpc-iii.git] / drivers / md / bcache / debug.h
blob1f63c195d2476ece1b0c50b6acdddd1a1d92ba8b
1 #ifndef _BCACHE_DEBUG_H
2 #define _BCACHE_DEBUG_H
4 struct bio;
5 struct cached_dev;
6 struct cache_set;
8 #ifdef CONFIG_BCACHE_DEBUG
10 void bch_btree_verify(struct btree *);
11 void bch_data_verify(struct cached_dev *, struct bio *);
13 #define expensive_debug_checks(c) ((c)->expensive_debug_checks)
14 #define key_merging_disabled(c) ((c)->key_merging_disabled)
15 #define bypass_torture_test(d) ((d)->bypass_torture_test)
17 #else /* DEBUG */
19 static inline void bch_btree_verify(struct btree *b) {}
20 static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {}
22 #define expensive_debug_checks(c) 0
23 #define key_merging_disabled(c) 0
24 #define bypass_torture_test(d) 0
26 #endif
28 #ifdef CONFIG_DEBUG_FS
29 void bch_debug_init_cache_set(struct cache_set *);
30 #else
31 static inline void bch_debug_init_cache_set(struct cache_set *c) {}
32 #endif
34 #endif