diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-10 14:14:06 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:54 -0400 |
| commit | 284251557562f6e8f0ce439cb52a6b9645b4e9a4 (patch) | |
| tree | 9a8e06cb12ea26bdb0572f33d5cee2224b231fc6 /fs/bcachefs/debug.h | |
| parent | bcachefs: Slim down inlined part of bch2_btree_path_upgrade() (diff) | |
| download | linux-284251557562f6e8f0ce439cb52a6b9645b4e9a4.tar.gz linux-284251557562f6e8f0ce439cb52a6b9645b4e9a4.zip | |
bcachefs: Debug params are now static_keys
We'd like users to be able to debug without building custom kernels, so
this will help us get rid of CONFIG_BCACHEFS_DEBUG, at least for most
things.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/debug.h')
| -rw-r--r-- | fs/bcachefs/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/debug.h b/fs/bcachefs/debug.h index 52dbea736709..d88b1194b8ac 100644 --- a/fs/bcachefs/debug.h +++ b/fs/bcachefs/debug.h @@ -14,7 +14,7 @@ void bch2_btree_node_ondisk_to_text(struct printbuf *, struct bch_fs *, static inline void bch2_btree_verify(struct bch_fs *c, struct btree *b) { - if (bch2_verify_btree_ondisk) + if (static_branch_unlikely(&bch2_verify_btree_ondisk)) __bch2_btree_verify(c, b); } |
