summaryrefslogtreecommitdiff
path: root/fs/netfs/main.c
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@kernel.org>2024-06-08 17:13:51 +0200
committerChristian Brauner <brauner@kernel.org>2024-06-12 14:25:41 +0200
commit163eae0fb0d4c610c59a8de38040f8e12f89fd43 (patch)
tree03c7f07d08dcb5d547674fbda4267d07a23bd82b /fs/netfs/main.c
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff)
netfs: Switch debug logging to pr_debug()
Instead of inventing a custom way to conditionally enable debugging, just make use of pr_debug(), which also has dynamic debugging facilities and is more likely known to someone who hunts a problem in the netfs code. Also drop the module parameter netfs_debug which didn't have any effect without further source changes. (The variable netfs_debug was only used in #ifdef blocks for cpp vars that don't exist; Note that CONFIG_NETFS_DEBUG isn't settable via kconfig, a variable with that name never existed in the mainline and is probably just taken over (and renamed) from similar custom debug logging implementations.) Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org> Link: https://lore.kernel.org/r/20240608151352.22860-2-ukleinek@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/netfs/main.c')
-rw-r--r--fs/netfs/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/netfs/main.c b/fs/netfs/main.c
index 5f0f438e5d21..db824c372842 100644
--- a/fs/netfs/main.c
+++ b/fs/netfs/main.c
@@ -20,10 +20,6 @@ MODULE_LICENSE("GPL");
EXPORT_TRACEPOINT_SYMBOL(netfs_sreq);
-unsigned netfs_debug;
-module_param_named(debug, netfs_debug, uint, S_IWUSR | S_IRUGO);
-MODULE_PARM_DESC(netfs_debug, "Netfs support debugging mask");
-
static struct kmem_cache *netfs_request_slab;
static struct kmem_cache *netfs_subrequest_slab;
mempool_t netfs_request_pool;