Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfs: clean up after renaming FSCACHE_DEBUG config

Commit 6b8e61472529 ("netfs: Rename CONFIG_FSCACHE_DEBUG to
CONFIG_NETFS_DEBUG") renames the config, but introduces two issues: First,
NETFS_DEBUG mistakenly depends on the non-existing config NETFS, whereas
the actual intended config is called NETFS_SUPPORT. Second, the config
renaming misses to adjust the documentation of the functionality of this
config.

Clean up those two points.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Link: https://lore.kernel.org/r/20240731073902.69262-1-lukas.bulwahn@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Lukas Bulwahn and committed by
Christian Brauner
889ced4c 64a7ce76

+5 -5
+4 -4
Documentation/filesystems/caching/fscache.rst
··· 318 318 Debugging 319 319 ========= 320 320 321 - If CONFIG_FSCACHE_DEBUG is enabled, the FS-Cache facility can have runtime 322 - debugging enabled by adjusting the value in:: 321 + If CONFIG_NETFS_DEBUG is enabled, the FS-Cache facility and NETFS support can 322 + have runtime debugging enabled by adjusting the value in:: 323 323 324 - /sys/module/fscache/parameters/debug 324 + /sys/module/netfs/parameters/debug 325 325 326 326 This is a bitmask of debugging streams to enable: 327 327 ··· 343 343 The appropriate set of values should be OR'd together and the result written to 344 344 the control file. For example:: 345 345 346 - echo $((1|8|512)) >/sys/module/fscache/parameters/debug 346 + echo $((1|8|512)) >/sys/module/netfs/parameters/debug 347 347 348 348 will turn on all function entry debugging.
+1 -1
fs/netfs/Kconfig
··· 24 24 25 25 config NETFS_DEBUG 26 26 bool "Enable dynamic debugging netfslib and FS-Cache" 27 - depends on NETFS 27 + depends on NETFS_SUPPORT 28 28 help 29 29 This permits debugging to be dynamically enabled in the local caching 30 30 management module. If this is set, the debugging output may be