Skip to contentSkip to conversation

move NFS_DEBUG definition

PATCH New Benny Halevy 1 participant 1 message Dec 21, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move NFS_DEBUG definition

-------- Original Message --------
Subject: [PATCH] move NFS_DEBUG definition
Date: Wed, 20 Dec 2006 22:29:46 +0200
From: Benny Halevy <[email protected]>
To: Trond Myklebust <[email protected]>
CC: [email protected]

Trond, looks like the changes to include/linux/nfs_fs.h in 2.6.18 that moved the #include's of sunrpc header files into the #ifdef __KERNEL__ block disabled nfs debugging for all nfs c file not including any sunrpc header.

The following patch moves the definition down, right before its use for defining ifdebug.

include/linux/nfs_fs.h +8 -8
@@ -9,14 +9,6 @@
 #ifndef _LINUX_NFS_FS_H
 #define _LINUX_NFS_FS_H
 
-/*
- * Enable debugging support for nfs client.
- * Requires RPC_DEBUG.
- */
-#ifdef RPC_DEBUG
-# define NFS_DEBUG
-#endif
-
 /* Default timeout values */
 #define NFS_MAX_UDP_TIMEOUT	(60*HZ)
 #define NFS_MAX_TCP_TIMEOUT	(600*HZ)
@@ -628,6 +620,14 @@ extern void * nfs_root_data(void);
 #define NFSDBG_ODIRECT		0x1000
 #define NFSDBG_ALL		0xFFFF
 
+/*
+ * Enable debugging support for nfs client.
+ * Requires RPC_DEBUG.
+ */
+#ifdef RPC_DEBUG
+# define NFS_DEBUG
+#endif
+
 #ifdef __KERNEL__
 # undef ifdebug
 # ifdef NFS_DEBUG

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs