Skip to contentSkip to conversation

netfs: fix the mismatch used for CONFIG_FSCACHE_DEBUG

PATCH In review yangerkun 5 participants 6 messages Mar 23, 2024 – Aug 19, 2024 Filesystems netfs library

lore
Share & tools
lore

yangerkun

author
#0 lore raw

PATCH 1/1 netfs: fix the mismatch used for CONFIG_FSCACHE_DEBUG

The name of debug config used in fs/netfs/internal.h has a mismatch compared to the define in fs/netfs/Kconfig, which lead to that debug for netfs won't work.

---
 fs/netfs/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/netfs/internal.h +1 -1
index ec7045d24400..53d61ead35fd 100644
@@ -349,7 +349,7 @@ void fscache_create_volume(struct fscache_volume *volume, bool wait);
 #define _leave(FMT, ...) kleave(FMT, ##__VA_ARGS__)
 #define _debug(FMT, ...) kdebug(FMT, ##__VA_ARGS__)
 
-#elif defined(CONFIG_NETFS_DEBUG)
+#elif defined(CONFIG_FSCACHE_DEBUG)
 #define _enter(FMT, ...)			\
 do {						\
 	if (netfs_debug)			\
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · yangerkun

The name of debug config used in fs/netfs/internal.h has a mismatch compared to the define in fs/netfs/Kconfig, which lead to that debug for netfs won't work.

---
 fs/netfs/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/netfs/internal.h +0 -0
index ec7045d24400..53d61ead35fd 100644

fs/netfs/internal.h void fscache_create_volume(struct fscache_volume *volume, bool wait); · line 355

Quoted 8 lines
fs/netfs/internal.h +1 -1
@@ -349,7 +349,7 @@ void fscache_create_volume(struct fscache_volume *volume, bool wait);
 #define _leave(FMT, ...) kleave(FMT, ##__VA_ARGS__)
 #define _debug(FMT, ...) kdebug(FMT, ##__VA_ARGS__)
 
-#elif defined(CONFIG_NETFS_DEBUG)
+#elif defined(CONFIG_FSCACHE_DEBUG)
 #define _enter(FMT, ...)			\
 do {						\
 	if (netfs_debug)			\

Nice catch!

author
#3 lore raw
In reply to yangerkun

Ping...

Quoted 22 lines · yangerkun

The name of debug config used in fs/netfs/internal.h has a mismatch compared to the define in fs/netfs/Kconfig, which lead to that debug for netfs won't work.

---
  fs/netfs/internal.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/netfs/internal.h +1 -1
index ec7045d24400..53d61ead35fd 100644
@@ -349,7 +349,7 @@ void fscache_create_volume(struct fscache_volume *volume, bool wait);
  #define _leave(FMT, ...) kleave(FMT, ##__VA_ARGS__)
  #define _debug(FMT, ...) kdebug(FMT, ##__VA_ARGS__)
 
-#elif defined(CONFIG_NETFS_DEBUG)
+#elif defined(CONFIG_FSCACHE_DEBUG)
  #define _enter(FMT, ...)			\
  do {						\
  	if (netfs_debug)			\
maintainer
#4 lore raw
In reply to yangerkun
Quoted 3 lines · yangerkun

The name of debug config used in fs/netfs/internal.h has a mismatch compared to the define in fs/netfs/Kconfig, which lead to that debug for netfs won't work.

Thanks, however this patch is now obsolete as of commit fcad93360df4d04b172dba85b976c9f38ee0d5e0:

netfs: Rename CONFIG_FSCACHE_DEBUG to CONFIG_NETFS_DEBUG

David

#5 lore raw
Quoted 10 lines · David Howells
Quoted 3 lines · yangerkun

The name of debug config used in fs/netfs/internal.h has a mismatch compared to the define in fs/netfs/Kconfig, which lead to that debug for netfs won't work.

Thanks, however this patch is now obsolete as of commit fcad93360df4d04b172dba85b976c9f38ee0d5e0:

netfs: Rename CONFIG_FSCACHE_DEBUG to CONFIG_NETFS_DEBUG

Oh, sorry, I have not check the latest kernel does this problem still exist, it's me fault, thanks a lot for you point out this.

Quoted 4 lines

David