summaryrefslogtreecommitdiff
path: root/fs/bcachefs/debug.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-20 20:21:12 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:01 -0400
commit6adaac0b95dd39da290f6006822fbf7560d2d1b5 (patch)
treed9b4b67f8b317bca5e15ade9b9074c006d8e9789 /fs/bcachefs/debug.h
parent7b7278bbaf2a5d2e6955d763a8a30a3ba190dc10 (diff)
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 <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/debug.h')
-rw-r--r--fs/bcachefs/debug.h4
1 files changed, 0 insertions, 4 deletions
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)
{