diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c index 1189c6107c88..52beaab227ef 100644 --- a/fs/bcachefs/extents.c +++ b/fs/bcachefs/extents.c @@ -179,7 +179,7 @@ void bch2_btree_ptr_debugcheck(struct bch_fs *c, struct bkey_s_c k) return; bch2_fs_inconsistent_on(!test_bit(BCH_FS_REBUILD_REPLICAS, &c->flags) && - !bch2_bkey_replicas_marked(c, k, false), c, + !bch2_bkey_replicas_marked_locked(c, k, false), c, "btree key bad (replicas not marked in superblock):\n%s", (bch2_bkey_val_to_text(&PBUF(buf), c, k), buf));