brintos

brintos / linux-shallow public Read only

0
0
Text · 886 B · fb3d4df Raw
36 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _BCACHE_DEBUG_H3#define _BCACHE_DEBUG_H4 5struct bio;6struct cached_dev;7struct cache_set;8 9#ifdef CONFIG_BCACHE_DEBUG10 11void bch_btree_verify(struct btree *b);12void bch_data_verify(struct cached_dev *dc, struct bio *bio);13 14#define expensive_debug_checks(c)	((c)->expensive_debug_checks)15#define key_merging_disabled(c)		((c)->key_merging_disabled)16#define bypass_torture_test(d)		((d)->bypass_torture_test)17 18#else /* DEBUG */19 20static inline void bch_btree_verify(struct btree *b) {}21static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {}22 23#define expensive_debug_checks(c)	024#define key_merging_disabled(c)		025#define bypass_torture_test(d)		026 27#endif28 29#ifdef CONFIG_DEBUG_FS30void bch_debug_init_cache_set(struct cache_set *c);31#else32static inline void bch_debug_init_cache_set(struct cache_set *c) {}33#endif34 35#endif36