Commit 27b3e523 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Add an assertion to track down a heisenbug

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 46e4bb1c
...@@ -1657,6 +1657,8 @@ void __bch2_foreground_maybe_merge(struct bch_fs *c, ...@@ -1657,6 +1657,8 @@ void __bch2_foreground_maybe_merge(struct bch_fs *c,
size_t sib_u64s; size_t sib_u64s;
int ret = 0; int ret = 0;
BUG_ON(!btree_node_locked(iter, level));
closure_init_stack(&cl); closure_init_stack(&cl);
retry: retry:
BUG_ON(!btree_node_locked(iter, level)); BUG_ON(!btree_node_locked(iter, level));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment