summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/debug.h
AgeCommit message (Collapse)Author
2016-10-07bcachefs: fsck improvementsKent Overstreet
Check for various inconsistencies on every mount - it's fast, and we really want to know if anyone is seeing them. Doesn't fix anything yet, because that has its own risk and none of these inconsistencies have been observed in the wild yet.
2016-10-07bcache: Cleanup debug parametersKent Overstreet
The main point of this patch was to add module parameters for all the debug parameters - so that if something like e.g. xfstests is creating/registering a cache set, we have a global parameter we can flip on instead of hacking xfstests. Also fix bch_count_data(), which was using int instead of s64 (since the size field of struct bkey is now 32 bits, that easily overflows if discards are involved).
2016-10-07bcache: bcachefsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2016-10-07bcache: Add some more slowpath tracepointsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2016-10-07bcache: reduce b->c usage (benchmark)Kent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2016-10-07bcache: New debugfs codeKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2014-01-08bcache: Convert debug code to btree_keysKent Overstreet
More work to disentangle various code from struct btree Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2014-01-08bcache: Btree verify code improvementsKent Overstreet
Used this fixed code to find and fix the bug fixed by a4d885097b0ac0cd1337f171f2d4b83e946094d4. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2013-11-10bcache: Bypass torture testKent Overstreet
More testing ftw! Also, now verify mode doesn't break if you read dirty data. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2013-11-10bcache: Debug code improvementsKent Overstreet
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>
2013-11-10bcache: Break up struct searchKent Overstreet
With all the recent refactoring around struct btree op struct search has gotten rather large. But we can now easily break it up in a different way - we break out struct btree_insert_op which is for inserting data into the cache, and that's now what the copying gc code uses - struct search is now specific to request.c Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2013-06-26bcache: Rip out pkey()/pbtree()Kent Overstreet
Old gcc doesnt like the struct hack, and it is kind of ugly. So finish off the work to convert pr_debug() statements to tracepoints, and delete pkey()/pbtree(). Signed-off-by: Kent Overstreet <koverstreet@google.com>
2013-03-23bcache: A block layer cacheKent Overstreet
Does writethrough and writeback caching, handles unclean shutdown, and has a bunch of other nifty features motivated by real world usage. See the wiki at http://bcache.evilpiepirate.org for more. Signed-off-by: Kent Overstreet <koverstreet@google.com>