diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-10-12 20:42:54 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-10-13 18:12:37 +0200 |
commit | 93c128e709aec23b10f3a2f78a824080d4085318 (patch) | |
tree | b9d2f357d1be6114a436633097c646cf72bac12e /fs | |
parent | NFSD: unregister shrinker when nfsd_init_net() fails (diff) | |
download | linux-93c128e709aec23b10f3a2f78a824080d4085318.tar.xz linux-93c128e709aec23b10f3a2f78a824080d4085318.zip |
nfsd: ensure we always call fh_verify_error tracepoint
This is a conditional tracepoint. Call it every time, not just when
nfs_permission fails.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfsfh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index d73434200df9..8c52b6c9d31a 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c @@ -392,8 +392,8 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) skip_pseudoflavor_check: /* Finally, check access permissions. */ error = nfsd_permission(rqstp, exp, dentry, access); - trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error); out: + trace_nfsd_fh_verify_err(rqstp, fhp, type, access, error); if (error == nfserr_stale) nfsd_stats_fh_stale_inc(exp); return error; |