summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2016-10-04 18:53:49 +0200
committerJ. Bruce Fields <bfields@redhat.com>2016-10-07 20:53:33 +0200
commitff30f08c32f932272f9bd4c1caca824ffc939346 (patch)
tree1ec4c7d9cabff1db91555a8d6cdafbc79816030b
parentexportfs: be careful to only return expected errors. (diff)
downloadlinux-ff30f08c32f932272f9bd4c1caca824ffc939346.tar.xz
linux-ff30f08c32f932272f9bd4c1caca824ffc939346.zip
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>
-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;
}