]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bcache: Debug code improvements
authorKent Overstreet <kmo@daterainc.com>
Wed, 11 Sep 2013 02:04:31 +0000 (19:04 -0700)
committerKent Overstreet <kmo@daterainc.com>
Wed, 11 Sep 2013 02:04:31 +0000 (19:04 -0700)
commit295e0820fe16ec54fabeac4b7c776e319142ed7b
tree1f24ddd44026b6327c2753027347d5d4e378865e
parent313c27aee9facd8826baa2e79403dd610926434c
bcache: Debug code improvements

Couple changes:
 * Consolidate bch_check_keys() and bch_check_key_order(), and move the
   checks that only check_key_order() could do to bch_btree_iter_next().

 * Get rid of CONFIG_BCACHE_EDEBUG - now, all that code is compiled in
   when CONFIG_BCACHE_DEBUG is enabled, and there's now a sysfs file to
   flip on the EDEBUG checks at runtime.

 * Dropped an old not terribly useful check in rw_unlock(), and
   refactored/improved a some of the other debug code.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/Kconfig
drivers/md/bcache/alloc.c
drivers/md/bcache/bcache.h
drivers/md/bcache/bset.c
drivers/md/bcache/bset.h
drivers/md/bcache/btree.c
drivers/md/bcache/btree.h
drivers/md/bcache/debug.c
drivers/md/bcache/debug.h
drivers/md/bcache/sysfs.c
drivers/md/bcache/util.h