#include "bcache.h"
#include "btree.h"
#include "debug.h"
#include "extents.h"
#include <linux/console.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/seq_file.h>
struct dentry *bcache_debug;
#ifdef CONFIG_BCACHE_DEBUG
#define for_each_written_bset(b, start, i) …
void bch_btree_verify(struct btree *b)
{ … }
void bch_data_verify(struct cached_dev *dc, struct bio *bio)
{ … }
#endif
#ifdef CONFIG_DEBUG_FS
struct dump_iterator { … };
static bool dump_pred(struct keybuf *buf, struct bkey *k)
{ … }
static ssize_t bch_dump_read(struct file *file, char __user *buf,
size_t size, loff_t *ppos)
{ … }
static int bch_dump_open(struct inode *inode, struct file *file)
{ … }
static int bch_dump_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations cache_set_debug_ops = …;
void bch_debug_init_cache_set(struct cache_set *c)
{ … }
#endif
void bch_debug_exit(void)
{ … }
void __init bch_debug_init(void)
{ … }