summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsproc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2016-10-04 12:53:49 -0400
committerJ. Bruce Fields <bfields@redhat.com>2016-10-07 14:53:33 -0400
commitff30f08c32f932272f9bd4c1caca824ffc939346 (patch)
tree1ec4c7d9cabff1db91555a8d6cdafbc79816030b /fs/nfsd/nfsproc.c
parent09bb8bfffd29c3dffb72bc2c69a062dfb1ae624c (diff)
downloadlinux-ff30f08c32f932272f9bd4c1caca824ffc939346.tar.bz2
nfsd: only WARN once on unmapped errors
No need to spam the logs here. The only drawback is losing information if we ever encounter two different unmapped errors, but in practice we've rarely see even one. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r--fs/nfsd/nfsproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c
index e9214768cde9..a56ee10204d9 100644
--- a/fs/nfsd/nfsproc.c
+++ b/fs/nfsd/nfsproc.c
@@ -798,7 +798,7 @@ nfserrno (int errno)
if (nfs_errtbl[i].syserr == errno)
return nfs_errtbl[i].nfserr;
}
- WARN(1, "nfsd: non-standard errno: %d\n", errno);
+ WARN_ONCE(1, "nfsd: non-standard errno: %d\n", errno);
return nfserr_io;
}