From 6adaac0b95dd39da290f6006822fbf7560d2d1b5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 20 Apr 2021 20:21:12 -0400 Subject: bcachefs: Update bch2_btree_verify() bch2_btree_verify() verifies that the btree node on disk matches what we have in memory. This patch changes it to verify every replica, and also fixes it for interior btree nodes - there's a mem_ptr field which is used as a scratch space and needs to be zeroed out for comparing with what's on disk. Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/debug.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'fs/bcachefs/debug.h') diff --git a/fs/bcachefs/debug.h b/fs/bcachefs/debug.h index 7ac1615e9447..0b86736e5e1b 100644 --- a/fs/bcachefs/debug.h +++ b/fs/bcachefs/debug.h @@ -8,11 +8,7 @@ struct bio; struct btree; struct bch_fs; -#ifdef CONFIG_BCACHEFS_DEBUG void __bch2_btree_verify(struct bch_fs *, struct btree *); -#else -static inline void __bch2_btree_verify(struct bch_fs *c, struct btree *b) {} -#endif static inline void bch2_btree_verify(struct bch_fs *c, struct btree *b) { -- cgit v1.2.3