diff mbox series

[resend] bcachefs: BCACHEFS_PATH_TRACEPOINTS should depend on TRACING

Message ID 2d26d15c39b72c815f14593b8cc916d47e82402d.1733243875.git.geert@linux-m68k.org (mailing list archive)
State Handled Elsewhere
Headers show
Series [resend] bcachefs: BCACHEFS_PATH_TRACEPOINTS should depend on TRACING | expand

Commit Message

Geert Uytterhoeven Dec. 3, 2024, 4:40 p.m. UTC
When tracing is disabled, there is no point in asking the user about
enabling extra btree_path tracepoints in bcachefs.

Fixes: 32ed4a620c5405be ("bcachefs: Btree path tracepoints")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 fs/bcachefs/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kent Overstreet Dec. 4, 2024, 2:23 a.m. UTC | #1
On Tue, Dec 03, 2024 at 05:40:10PM +0100, Geert Uytterhoeven wrote:
> When tracing is disabled, there is no point in asking the user about
> enabling extra btree_path tracepoints in bcachefs.
> 
> Fixes: 32ed4a620c5405be ("bcachefs: Btree path tracepoints")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Thanks, applied

> ---
>  fs/bcachefs/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig
> index ab6c95b895b33591..464b927e4fffd1f2 100644
> --- a/fs/bcachefs/Kconfig
> +++ b/fs/bcachefs/Kconfig
> @@ -90,7 +90,7 @@ config BCACHEFS_SIX_OPTIMISTIC_SPIN
>  
>  config BCACHEFS_PATH_TRACEPOINTS
>  	bool "Extra btree_path tracepoints"
> -	depends on BCACHEFS_FS
> +	depends on BCACHEFS_FS && TRACING
>  	help
>  	Enable extra tracepoints for debugging btree_path operations; we don't
>  	normally want these enabled because they happen at very high rates.
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig
index ab6c95b895b33591..464b927e4fffd1f2 100644
--- a/fs/bcachefs/Kconfig
+++ b/fs/bcachefs/Kconfig
@@ -90,7 +90,7 @@  config BCACHEFS_SIX_OPTIMISTIC_SPIN
 
 config BCACHEFS_PATH_TRACEPOINTS
 	bool "Extra btree_path tracepoints"
-	depends on BCACHEFS_FS
+	depends on BCACHEFS_FS && TRACING
 	help
 	Enable extra tracepoints for debugging btree_path operations; we don't
 	normally want these enabled because they happen at very high rates.