From: Kent Overstreet Date: Tue, 7 Apr 2020 21:31:38 +0000 (-0400) Subject: bcachefs: Fix a locking bug in bch2_btree_ptr_debugcheck() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1eba942d1c48a9d3dadbb04f65be7705f506e40b;p=users%2Fjedix%2Flinux-maple.git bcachefs: Fix a locking bug in bch2_btree_ptr_debugcheck() Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- 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));