]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bcachefs: Fix an assertion
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 22 Jul 2018 17:04:00 +0000 (13:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:07 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_leaf.c

index 7ce2e35dafa2a95931576d9d8f4b8b34bd1c5007..3d0c6f5c98ada9e22495defc8309febc82e44a1a 100644 (file)
@@ -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: */