mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 06:18:45 -04:00
bcachefs: Put btree_trans_verify_sorted() behind debug_check_iterators
This is pretty expensive, and we've tested sufficiently with it now that it doesn't need to be on by default. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
committed by
Kent Overstreet
parent
e320b42dfe
commit
ee4d17d032
@@ -2916,6 +2916,9 @@ static void btree_trans_verify_sorted(struct btree_trans *trans)
|
||||
struct btree_path *path, *prev = NULL;
|
||||
unsigned i;
|
||||
|
||||
if (!bch2_debug_check_iterators)
|
||||
return;
|
||||
|
||||
trans_for_each_path_inorder(trans, path, i) {
|
||||
if (prev && btree_path_cmp(prev, path) > 0) {
|
||||
bch2_dump_trans_paths_updates(trans);
|
||||
|
||||
Reference in New Issue
Block a user