Commit aa6e130e authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Add an assertion for trying to evict btree root

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4bd02d3f
......@@ -1134,6 +1134,8 @@ void bch2_btree_node_evict(struct btree_trans *trans, const struct bkey_i *k)
b = btree_cache_find(bc, k);
if (!b)
return;
BUG_ON(b == btree_node_root(trans->c, b));
wait_on_io:
/* not allowed to wait on io with btree locks held: */
......
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