From 477670f48167cac1b871b061713cc1b594a2a941 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 3 May 2024 15:22:22 -0400 Subject: Update bcachefs sources to 07f9a27f1969 bcachefs: add no_invalid_checks flag --- libbcachefs/btree_locking.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbcachefs/btree_locking.h') diff --git a/libbcachefs/btree_locking.h b/libbcachefs/btree_locking.h index 4bd72c85..7f41545b 100644 --- a/libbcachefs/btree_locking.h +++ b/libbcachefs/btree_locking.h @@ -364,14 +364,14 @@ static inline int bch2_btree_path_upgrade(struct btree_trans *trans, struct btree_path *path, unsigned new_locks_want) { - struct get_locks_fail f; + struct get_locks_fail f = {}; unsigned old_locks_want = path->locks_want; new_locks_want = min(new_locks_want, BTREE_MAX_DEPTH); if (path->locks_want < new_locks_want ? __bch2_btree_path_upgrade(trans, path, new_locks_want, &f) - : path->uptodate == BTREE_ITER_UPTODATE) + : path->nodes_locked) return 0; trace_and_count(trans->c, trans_restart_upgrade, trans, _THIS_IP_, path, -- cgit v1.2.3