]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: XFS_ONLINE_SCRUB_STATS should depend on DEBUG_FS
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Oct 2025 08:48:46 +0000 (10:48 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 21 Oct 2025 07:52:59 +0000 (09:52 +0200)
Currently, XFS_ONLINE_SCRUB_STATS selects DEBUG_FS.  However, DEBUG_FS
is meant for debugging, and people may want to disable it on production
systems.  Since commit 0ff51a1fd786f47b ("xfs: enable online fsck by
default in Kconfig")), XFS_ONLINE_SCRUB_STATS is enabled by default,
forcing DEBUG_FS enabled too.

Fix this by replacing the selection of DEBUG_FS by a dependency on
DEBUG_FS, which is what most other options controlling the gathering and
exposing of statistics do.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/Kconfig

index d66d517c99a921661c88cffd8e0b8a2d74be422c..b99da294e9a310a3612e9f142b66c67b7a15f472 100644 (file)
@@ -165,7 +165,7 @@ config XFS_ONLINE_SCRUB_STATS
        bool "XFS online metadata check usage data collection"
        default y
        depends on XFS_ONLINE_SCRUB
-       select DEBUG_FS
+       depends on DEBUG_FS
        help
          If you say Y here, the kernel will gather usage data about
          the online metadata check subsystem.  This includes the number