Looking up a nonexistent file in NFS is a normal usecase and the caller
should handle it appropriately. Do not print a message from the NFS core
in this case.

Signed-off-by: Sascha Hauer <[email protected]>
---
 fs/nfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs.c b/fs/nfs.c
index 
c9dc5d14ccec67e252750ce2bed076cf0b63cbd8..5c2476cd88634c37cf2cc9358c0482c03d180daa
 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -938,7 +938,7 @@ static int nfs_lookup_req(struct nfs_priv *npriv, struct 
nfs_fh *fh,
 
        status = ntoh32(net_read_uint32(p));
        if (status != NFS3_OK) {
-               dev_err(dev, "Lookup failed: %s\n", nfserrstr(status, &ret));
+               dev_dbg(dev, "Lookup failed: %s\n", nfserrstr(status, &ret));
                goto err_free_packet;
        }
 

-- 
2.47.3


Reply via email to