summaryrefslogtreecommitdiff
path: root/libbcache/debug.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-19 15:56:34 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-19 17:31:47 -0800
commit5ec39af8eaba49aee7bafa44c661da39e2f40dc3 (patch)
tree1fb1a981602cbf22c7d2b2dba1168c715d7cecb5 /libbcache/debug.h
parentbb1941de5378a7b8122d3575dcbc7d0aeb6326f0 (diff)
Rename from bcache-tools to bcachefs-tools
Diffstat (limited to 'libbcache/debug.h')
-rw-r--r--libbcache/debug.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/libbcache/debug.h b/libbcache/debug.h
deleted file mode 100644
index 63e74304..00000000
--- a/libbcache/debug.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#ifndef _BCACHE_DEBUG_H
-#define _BCACHE_DEBUG_H
-
-#include "bcache.h"
-
-struct bio;
-struct btree;
-struct cached_dev;
-struct bch_fs;
-
-#define BCH_DEBUG_PARAM(name, description) extern bool bch_##name;
-BCH_DEBUG_PARAMS()
-#undef BCH_DEBUG_PARAM
-
-#define BCH_DEBUG_PARAM(name, description) \
- static inline bool name(struct bch_fs *c) \
- { return bch_##name || c->name; }
-BCH_DEBUG_PARAMS_ALWAYS()
-#undef BCH_DEBUG_PARAM
-
-#ifdef CONFIG_BCACHE_DEBUG
-
-#define BCH_DEBUG_PARAM(name, description) \
- static inline bool name(struct bch_fs *c) \
- { return bch_##name || c->name; }
-BCH_DEBUG_PARAMS_DEBUG()
-#undef BCH_DEBUG_PARAM
-
-void __bch_btree_verify(struct bch_fs *, struct btree *);
-void bch_data_verify(struct cached_dev *, struct bio *);
-
-#define bypass_torture_test(d) ((d)->bypass_torture_test)
-
-#else /* DEBUG */
-
-#define BCH_DEBUG_PARAM(name, description) \
- static inline bool name(struct bch_fs *c) { return false; }
-BCH_DEBUG_PARAMS_DEBUG()
-#undef BCH_DEBUG_PARAM
-
-static inline void __bch_btree_verify(struct bch_fs *c, struct btree *b) {}
-static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {}
-
-#define bypass_torture_test(d) 0
-
-#endif
-
-static inline void bch_btree_verify(struct bch_fs *c, struct btree *b)
-{
- if (verify_btree_ondisk(c))
- __bch_btree_verify(c, b);
-}
-
-#ifdef CONFIG_DEBUG_FS
-void bch_fs_debug_exit(struct bch_fs *);
-void bch_fs_debug_init(struct bch_fs *);
-#else
-static inline void bch_fs_debug_exit(struct bch_fs *c) {}
-static inline void bch_fs_debug_init(struct bch_fs *c) {}
-#endif
-
-void bch_debug_exit(void);
-int bch_debug_init(void);
-
-#endif