]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: move ref-verify under CONFIG_BTRFS_DEBUG
authorLeo Martins <loemra.dev@gmail.com>
Tue, 12 Aug 2025 23:28:27 +0000 (16:28 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:32 +0000 (10:54 +0200)
commitcba7c35fec267188a9708deae857e9116c57497b
tree8dbc0a0f52c75a46859a19fe9eb233492a1f1b44
parent28a38e20acf58ddbeb65eb1c359cc43414094f5a
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>
fs/btrfs/Kconfig
fs/btrfs/Makefile
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/fs.h
fs/btrfs/ref-verify.h
fs/btrfs/super.c