netfs: fix the mismatch used for CONFIG_FSCACHE_DEBUG
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
@@ -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
Quoted 14 lines · yangerkun
The name of debug config used in
fs/netfs/internal.hhas a mismatch compared to the define infs/netfs/Kconfig, which lead to that debug for netfs won't work.Signed-off-by yangerkun <[email protected]>--- fs/netfs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/netfs/internal.h +0
-0
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!
Quoted 5 lines · yangerkun
The name of debug config used in
fs/netfs/internal.hhas a mismatch compared to the define infs/netfs/Kconfig, which lead to that debug for netfs won't work.Signed-off-by yangerkun <[email protected]>
Thanks,
Gao Xiang
Ping...
Quoted 22 lines · yangerkun
The name of debug config used in
fs/netfs/internal.hhas a mismatch compared to the define infs/netfs/Kconfig, which lead to that debug for netfs won't work.Signed-off-by yangerkun <[email protected]>--- fs/netfs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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) \
David Howells
maintainerQuoted 3 lines · yangerkun
The name of debug config used in
fs/netfs/internal.hhas a mismatch compared to the define infs/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
Quoted 10 lines · David Howells
Quoted 3 lines · yangerkun
The name of debug config used in
fs/netfs/internal.hhas a mismatch compared to the define infs/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_DEBUGtoCONFIG_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