Bläddra i källkod

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>
J. Bruce Fields 9 år sedan
förälder
incheckning
ff30f08c32
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      fs/nfsd/nfsproc.c

+ 1 - 1
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;
 }