Commit 8bb4dff7 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix an assertion

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent d96b3ffe
......@@ -490,7 +490,7 @@ int __bch2_btree_insert_at(struct btree_insert *trans)
bch2_btree_iter_verify_locks(linked);
BUG_ON((trans->flags & BTREE_INSERT_NOUNLOCK) &&
trans->did_work &&
linked->uptodate >= BTREE_ITER_NEED_RELOCK);
!btree_node_locked(linked, 0));
}
/* make sure we didn't lose an error: */
......
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