mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user