Commit 966885ee authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix a linked list bug

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6b5f9b29
...@@ -803,7 +803,7 @@ void bch2_btree_interior_update_will_free_node(struct btree_update *as, ...@@ -803,7 +803,7 @@ void bch2_btree_interior_update_will_free_node(struct btree_update *as,
* operations complete * operations complete
*/ */
list_for_each_entry_safe(p, n, &b->write_blocked, write_blocked_list) { list_for_each_entry_safe(p, n, &b->write_blocked, write_blocked_list) {
list_del(&p->write_blocked_list); list_del_init(&p->write_blocked_list);
btree_update_reparent(as, p); btree_update_reparent(as, p);
/* /*
......
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