bcachefs: Fix a linked list bug

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2020-06-09 16:25:07 -04:00 committed by Kent Overstreet
parent 6b5f9b29e6
commit 966885ee40

View File

@ -803,7 +803,7 @@ void bch2_btree_interior_update_will_free_node(struct btree_update *as,
* operations complete
*/
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);
/*