Skip to content

Commit f5caeb3

Browse files
geertucmaiolino
authored andcommitted
xfs: XFS_ONLINE_SCRUB_STATS should depend on DEBUG_FS
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 0ff51a1 ("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>
1 parent b00bcb1 commit f5caeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ config XFS_ONLINE_SCRUB_STATS
165165
bool "XFS online metadata check usage data collection"
166166
default y
167167
depends on XFS_ONLINE_SCRUB
168-
select DEBUG_FS
168+
depends on DEBUG_FS
169169
help
170170
If you say Y here, the kernel will gather usage data about
171171
the online metadata check subsystem. This includes the number

0 commit comments

Comments
 (0)