aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsfh.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-10-12 14:42:54 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-10-13 12:12:37 -0400
commit93c128e709aec23b10f3a2f78a824080d4085318 (patch)
treeb9d2f357d1be6114a436633097c646cf72bac12e /fs/nfsd/nfsfh.c
parentNFSD: unregister shrinker when nfsd_init_net() fails (diff)
downloadlinux-dev-93c128e709aec23b10f3a2f78a824080d4085318.tar.xz
linux-dev-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/nfsd/nfsfh.c')
-rw-r--r--fs/nfsd/nfsfh.c2
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;