diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-16 01:54:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-16 03:46:14 -0400 |
commit | 0a592b4469359789ce7f610d42fad90b921f449f (patch) | |
tree | 891f8d58a80fde3eb119d4b00acdc7907841efc1 | |
parent | 3f92ebde5a92f7ffca8195713e9286fa1f6e41af (diff) |
bcachefs: move an assertion to expensive_debug_checks
-rw-r--r-- | fs/bcachefs/bset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index 5c77787214c7..8c77fc509b55 100644 --- a/fs/bcachefs/bset.c +++ b/fs/bcachefs/bset.c @@ -1449,7 +1449,7 @@ static struct bkey_packed *bch2_bset_search(struct btree *b, !btree_iter_pos_cmp_packed(b, &search, m, strictly_greater)) m = bkey_next(m); - if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG)) { + if (btree_keys_expensive_checks(b)) { struct bkey_packed *prev = bch2_bkey_prev_all(b, t, m); BUG_ON(prev && |