diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-13 10:36:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-22 08:58:24 -0400 |
commit | ca8acf8d84029b395ade8d4562dae2108bb00c17 (patch) | |
tree | 462c32eb1c98c5eb8698618b9b524c57a344c0e2 /fs/nfs/callback_proc.c | |
parent | fbc6f7c233ff0a7e98f5dc2837b08adf03aa9376 (diff) |
NFSv4: Add tracepoints for debugging delegations
Set up tracepoints to track when delegations are set, reclaimed,
returned by the client, or recalled by the server.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r-- | fs/nfs/callback_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index e6ebc4c38c81..c0749305189b 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "internal.h" | 15 | #include "internal.h" |
16 | #include "pnfs.h" | 16 | #include "pnfs.h" |
17 | #include "nfs4session.h" | 17 | #include "nfs4session.h" |
18 | #include "nfs4trace.h" | ||
18 | 19 | ||
19 | #ifdef NFS_DEBUG | 20 | #ifdef NFS_DEBUG |
20 | #define NFSDBG_FACILITY NFSDBG_CALLBACK | 21 | #define NFSDBG_FACILITY NFSDBG_CALLBACK |
@@ -93,6 +94,7 @@ __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy, | |||
93 | default: | 94 | default: |
94 | res = htonl(NFS4ERR_RESOURCE); | 95 | res = htonl(NFS4ERR_RESOURCE); |
95 | } | 96 | } |
97 | trace_nfs4_recall_delegation(inode, -ntohl(res)); | ||
96 | iput(inode); | 98 | iput(inode); |
97 | out: | 99 | out: |
98 | dprintk("%s: exit with status = %d\n", __func__, ntohl(res)); | 100 | dprintk("%s: exit with status = %d\n", __func__, ntohl(res)); |