cregit-Linux how code gets into the kernel

Release 4.18 drivers/md/bcache/debug.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHE_DEBUG_H

#define _BCACHE_DEBUG_H

struct bio;
struct cached_dev;
struct cache_set;

#ifdef CONFIG_BCACHE_DEBUG

void bch_btree_verify(struct btree *);
void bch_data_verify(struct cached_dev *, struct bio *);


#define expensive_debug_checks(c)	((c)->expensive_debug_checks)

#define key_merging_disabled(c)		((c)->key_merging_disabled)

#define bypass_torture_test(d)		((d)->bypass_torture_test)

#else /* DEBUG */


static inline void bch_btree_verify(struct btree *b) {}

Contributors

PersonTokensPropCommitsCommitProp
Kent Overstreet11100.00%2100.00%
Total11100.00%2100.00%


static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {}

Contributors

PersonTokensPropCommitsCommitProp
Kent Overstreet16100.00%3100.00%
Total16100.00%3100.00%

#define expensive_debug_checks(c) 0 #define key_merging_disabled(c) 0 #define bypass_torture_test(d) 0 #endif #ifdef CONFIG_DEBUG_FS void bch_debug_init_cache_set(struct cache_set *); #else
static inline void bch_debug_init_cache_set(struct cache_set *c) {}

Contributors

PersonTokensPropCommitsCommitProp
Kent Overstreet11100.00%1100.00%
Total11100.00%1100.00%

#endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Kent Overstreet14099.29%583.33%
Greg Kroah-Hartman10.71%116.67%
Total141100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.