diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-21 02:21:12 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:01 +0200 |
commit | 6adaac0b95dd39da290f6006822fbf7560d2d1b5 (patch) | |
tree | d9b4b67f8b317bca5e15ade9b9074c006d8e9789 /fs/bcachefs/debug.h | |
parent | bcachefs: Fix two btree iterator leaks (diff) | |
download | linux-6adaac0b95dd39da290f6006822fbf7560d2d1b5.tar.xz linux-6adaac0b95dd39da290f6006822fbf7560d2d1b5.zip |
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.h | 4 |
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) { |