summaryrefslogtreecommitdiff
path: root/fs/btrfs/ref-verify.h
diff options
context:
space:
mode:
authorLeo Martins <loemra.dev@gmail.com>2025-08-12 16:28:27 -0700
committerDavid Sterba <dsterba@suse.com>2025-09-22 10:54:32 +0200
commitcba7c35fec267188a9708deae857e9116c57497b (patch)
tree8dbc0a0f52c75a46859a19fe9eb233492a1f1b44 /fs/btrfs/ref-verify.h
parent28a38e20acf58ddbeb65eb1c359cc43414094f5a (diff)
btrfs: move ref-verify under CONFIG_BTRFS_DEBUG
Remove CONFIG_BTRFS_FS_REF_VERIFY Kconfig and add it as part of CONFIG_BTRFS_DEBUG. This should not be impactful to the performance of debug. The struct btrfs_ref takes an additional u64, btrfs_fs_info takes an additional spinlock_t and rb_root. All of the ref_verify logic is still protected by a mount option. Signed-off-by: Leo Martins <loemra.dev@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ref-verify.h')
-rw-r--r--fs/btrfs/ref-verify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ref-verify.h b/fs/btrfs/ref-verify.h
index 559bd25a2b7a..1ce544d53cc5 100644
--- a/fs/btrfs/ref-verify.h
+++ b/fs/btrfs/ref-verify.h
@@ -12,7 +12,7 @@
struct btrfs_fs_info;
struct btrfs_ref;
-#ifdef CONFIG_BTRFS_FS_REF_VERIFY
+#ifdef CONFIG_BTRFS_DEBUG
#include <linux/spinlock.h>
@@ -53,6 +53,6 @@ static inline void btrfs_init_ref_verify(struct btrfs_fs_info *fs_info)
{
}
-#endif /* CONFIG_BTRFS_FS_REF_VERIFY */
+#endif /* CONFIG_BTRFS_DEBUG */
#endif