aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h17
-rw-r--r--include/linux/sunrpc/debug.h2
2 files changed, 9 insertions, 10 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 0a63ab2b5a76..8f27c2e36ddf 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -38,6 +38,13 @@
38 38
39#ifdef __KERNEL__ 39#ifdef __KERNEL__
40 40
41/*
42 * Enable dprintk() debugging support for nfs client.
43 */
44#ifdef CONFIG_NFS_DEBUG
45# define NFS_DEBUG
46#endif
47
41#include <linux/in.h> 48#include <linux/in.h>
42#include <linux/mm.h> 49#include <linux/mm.h>
43#include <linux/pagemap.h> 50#include <linux/pagemap.h>
@@ -391,7 +398,7 @@ static inline void nfs_free_fhandle(const struct nfs_fh *fh)
391 kfree(fh); 398 kfree(fh);
392} 399}
393 400
394#ifdef RPC_DEBUG 401#ifdef NFS_DEBUG
395extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh); 402extern u32 _nfs_display_fhandle_hash(const struct nfs_fh *fh);
396static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh) 403static inline u32 nfs_display_fhandle_hash(const struct nfs_fh *fh)
397{ 404{
@@ -650,14 +657,6 @@ nfs_fileid_to_ino_t(u64 fileid)
650 657
651#ifdef __KERNEL__ 658#ifdef __KERNEL__
652 659
653/*
654 * Enable debugging support for nfs client.
655 * Requires RPC_DEBUG.
656 */
657#ifdef RPC_DEBUG
658# define NFS_DEBUG
659#endif
660
661# undef ifdebug 660# undef ifdebug
662# ifdef NFS_DEBUG 661# ifdef NFS_DEBUG
663# define ifdebug(fac) if (unlikely(nfs_debug & NFSDBG_##fac)) 662# define ifdebug(fac) if (unlikely(nfs_debug & NFSDBG_##fac))
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
index 6cb2517bcf75..9448eb5e426c 100644
--- a/include/linux/sunrpc/debug.h
+++ b/include/linux/sunrpc/debug.h
@@ -31,7 +31,7 @@
31/* 31/*
32 * Enable RPC debugging/profiling. 32 * Enable RPC debugging/profiling.
33 */ 33 */
34#ifdef CONFIG_SYSCTL 34#ifdef CONFIG_SUNRPC_DEBUG
35#define RPC_DEBUG 35#define RPC_DEBUG
36#endif 36#endif
37#ifdef CONFIG_TRACEPOINTS 37#ifdef CONFIG_TRACEPOINTS