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>
Showing
- fs/netfs/buffered_read.c 7 additions, 7 deletionsfs/netfs/buffered_read.c
- fs/netfs/buffered_write.c 6 additions, 6 deletionsfs/netfs/buffered_write.c
- fs/netfs/direct_read.c 1 addition, 1 deletionfs/netfs/direct_read.c
- fs/netfs/direct_write.c 4 additions, 4 deletionsfs/netfs/direct_write.c
- fs/netfs/fscache_cache.c 2 additions, 2 deletionsfs/netfs/fscache_cache.c
- fs/netfs/fscache_cookie.c 14 additions, 14 deletionsfs/netfs/fscache_cookie.c
- fs/netfs/fscache_io.c 6 additions, 6 deletionsfs/netfs/fscache_io.c
- fs/netfs/fscache_main.c 1 addition, 1 deletionfs/netfs/fscache_main.c
- fs/netfs/fscache_volume.c 2 additions, 2 deletionsfs/netfs/fscache_volume.c
- fs/netfs/internal.h 1 addition, 32 deletionsfs/netfs/internal.h
- fs/netfs/io.c 6 additions, 6 deletionsfs/netfs/io.c
- fs/netfs/main.c 0 additions, 4 deletionsfs/netfs/main.c
- fs/netfs/misc.c 2 additions, 2 deletionsfs/netfs/misc.c
- fs/netfs/write_collect.c 8 additions, 8 deletionsfs/netfs/write_collect.c
- fs/netfs/write_issue.c 18 additions, 18 deletionsfs/netfs/write_issue.c
Please register or sign in to comment