diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-02 18:36:08 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-05 12:45:15 -0500 |
commit | ae49b96828aaec202340118b0c1f68b6e8344481 (patch) | |
tree | a52ca39b29c7e7620f30eb6f9e365247832e5eb5 | |
parent | 6d2a3aa5b55e79610458b3838495464cb37b417a (diff) |
bcachefs: Split out debug_check_btree_accounting
This check is very expensive
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | fs/bcachefs/bcachefs.h | 2 | ||||
-rw-r--r-- | fs/bcachefs/bset.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index 5d6668e300b1..f1e8f6bcce51 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -265,6 +265,8 @@ do { \ BCH_DEBUG_PARAM(debug_check_bkeys, \ "Run bkey_debugcheck (primarily checking GC/allocation "\ "information) when iterating over keys") \ + BCH_DEBUG_PARAM(debug_check_btree_accounting, \ + "Verify btree accounting for keys within a node") \ BCH_DEBUG_PARAM(verify_btree_ondisk, \ "Reread btree nodes at various points to verify the " \ "mergesort in the read path against modifications " \ diff --git a/fs/bcachefs/bset.h b/fs/bcachefs/bset.h index 52d2c9f2d847..58b58a484845 100644 --- a/fs/bcachefs/bset.h +++ b/fs/bcachefs/bset.h @@ -643,7 +643,7 @@ static inline void bch2_verify_insert_pos(struct btree *b, static inline void bch2_verify_btree_nr_keys(struct btree *b) { - if (bch2_expensive_debug_checks) + if (bch2_debug_check_btree_accounting) __bch2_verify_btree_nr_keys(b); } |