projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bd02d3
)
bcachefs: Add an assertion for trying to evict btree root
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 24 Mar 2024 23:52:03 +0000
(19:52 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 1 Apr 2024 00:36:11 +0000
(20:36 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_cache.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/btree_cache.c
b/fs/bcachefs/btree_cache.c
index 562561a9a510e8ce55cdee26a9b064d4c07cf02d..8ff21b2e1463610e36b2de6b60f918340370b4f6 100644
(file)
--- a/
fs/bcachefs/btree_cache.c
+++ b/
fs/bcachefs/btree_cache.c
@@
-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: */