diff options
author | Trond Myklebust | 2020-03-01 18:21:40 -0500 |
---|---|---|
committer | Chuck Lever | 2020-03-16 12:04:33 -0400 |
commit | cf749f3cc734c459e835bb1cbfcadbce3c03291c (patch) | |
tree | 2fdb42464c72e4d7b45c88e8470f213bb41aab1b /fs/nfsd/export.c | |
parent | f01274a9335307eca729b5d12609976afcf21530 (diff) |
nfsd: Add tracepoints for exp_find_key() and exp_get_by_name()
Add tracepoints for upcalls.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r-- | fs/nfsd/export.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 15422c951fd1..e867db0bb380 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -23,6 +23,7 @@ #include "netns.h" #include "pnfs.h" #include "filecache.h" +#include "trace.h" #define NFSDDBG_FACILITY NFSDDBG_EXPORT @@ -832,8 +833,10 @@ exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type, if (ek == NULL) return ERR_PTR(-ENOMEM); err = cache_check(cd, &ek->h, reqp); - if (err) + if (err) { + trace_nfsd_exp_find_key(&key, err); return ERR_PTR(err); + } return ek; } @@ -855,8 +858,10 @@ exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, if (exp == NULL) return ERR_PTR(-ENOMEM); err = cache_check(cd, &exp->h, reqp); - if (err) + if (err) { + trace_nfsd_exp_get_by_name(&key, err); return ERR_PTR(err); + } return exp; } |