NFS: Add NFSDBG_STATE
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 May 2012 02:45:24 +0000 (22:45 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 May 2012 20:45:42 +0000 (16:45 -0400)
fs/nfs/nfs4state.c does not yet have any dprintk() call sites, and I'm
about to introduce some.  We will need a new flag for enabling them.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4renewd.c
fs/nfs/nfs4state.c
include/linux/nfs_fs.h

index dc484c0eae7f9706716e4a73cabe03857dd3ae15..6930bec91bca22a8f8f7cf0548dcfe9cc6964762 100644 (file)
@@ -49,7 +49,7 @@
 #include "nfs4_fs.h"
 #include "delegation.h"
 
-#define NFSDBG_FACILITY        NFSDBG_PROC
+#define NFSDBG_FACILITY                NFSDBG_STATE
 
 void
 nfs4_renew_state(struct work_struct *work)
index 7f0fcfc1fe9db51e9bc3748f511163dfed7cdce7..f8c06dec65639c97fc2dad9d04dadb398426d713 100644 (file)
@@ -57,6 +57,8 @@
 #include "internal.h"
 #include "pnfs.h"
 
+#define NFSDBG_FACILITY                NFSDBG_STATE
+
 #define OPENOWNER_POOL_SIZE    8
 
 const nfs4_stateid zero_stateid;
index 6cc7dbaf0695727214a542d6f21f3859ea811dc1..80a9385b88abfeed538ef6fb371fa24b4cea4f93 100644 (file)
@@ -634,6 +634,7 @@ nfs_fileid_to_ino_t(u64 fileid)
 #define NFSDBG_FSCACHE         0x0800
 #define NFSDBG_PNFS            0x1000
 #define NFSDBG_PNFS_LD         0x2000
+#define NFSDBG_STATE           0x4000
 #define NFSDBG_ALL             0xFFFF
 
 #ifdef __KERNEL__