diff options
author | J. Bruce Fields <bfields@redhat.com> | 2016-10-04 12:53:49 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-10-07 14:53:33 -0400 |
commit | ff30f08c32f932272f9bd4c1caca824ffc939346 (patch) | |
tree | 1ec4c7d9cabff1db91555a8d6cdafbc79816030b /fs/nfsd | |
parent | 09bb8bfffd29c3dffb72bc2c69a062dfb1ae624c (diff) | |
download | linux-ff30f08c32f932272f9bd4c1caca824ffc939346.tar.gz linux-ff30f08c32f932272f9bd4c1caca824ffc939346.tar.bz2 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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsproc.c | 2 |
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; } |