From 8bb4dff72d07f4f46e5627870a9614c4cee5a1bb Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 22 Jul 2018 13:04:00 -0400 Subject: [PATCH] bcachefs: Fix an assertion Signed-off-by: Kent Overstreet --- fs/bcachefs/btree_update_leaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c index 7ce2e35dafa2..3d0c6f5c98ad 100644 --- a/fs/bcachefs/btree_update_leaf.c +++ b/fs/bcachefs/btree_update_leaf.c @@ -490,7 +490,7 @@ out: 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: */ -- 2.39.5