From b84d42c31f34094c74d6306e11e3a0bc224c7575 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 16 Dec 2021 20:36:26 -0500 Subject: bcachefs: Split out CONFIG_BCACHEFS_DEBUG_TRANSACTIONS This puts the btree_transactions sysfs/debugfs file behind a separate config option - it's highly useful, but not cheap enough to enable permenantly. Signed-off-by: Kent Overstreet --- fs/bcachefs/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fs/bcachefs/Kconfig') diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig index bfe7e6c9c064..d2eb65e9032b 100644 --- a/fs/bcachefs/Kconfig +++ b/fs/bcachefs/Kconfig @@ -35,6 +35,15 @@ config BCACHEFS_POSIX_ACL depends on BCACHEFS_FS select FS_POSIX_ACL +config BCACHEFS_DEBUG_TRANSACTIONS + bool "bcachefs runtime info" + depends on BCACHEFS_FS + default y + help + This makes the list of running btree transactions available in debugfs. + + This is a highly useful debugging feature but does add a small amount of overhead. + config BCACHEFS_DEBUG bool "bcachefs debugging" depends on BCACHEFS_FS -- cgit v1.2.3