]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
NFSD: Demote a WARN to a pr_warn()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 8 Jul 2022 18:23:45 +0000 (14:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:08 +0000 (16:19 +0200)
[ Upstream commit ca3f9acb6d3faf78da2b63324f7c737dbddf7f69 ]

The call trace doesn't add much value, but it sure is noisy.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c

index d70c4e78f0b3ff9dc2b4a70e13523e4042d57915..15991eb9b8d8cffe9f50bf31878f91934de88cd0 100644 (file)
@@ -630,9 +630,9 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
        }
 
        status = nfsd4_process_open2(rqstp, resfh, open);
-       WARN(status && open->op_created,
-            "nfsd4_process_open2 failed to open newly-created file! status=%u\n",
-            be32_to_cpu(status));
+       if (status && open->op_created)
+               pr_warn("nfsd4_process_open2 failed to open newly-created file: status=%u\n",
+                       be32_to_cpu(status));
        if (reclaim && !status)
                nn->somebody_reclaimed = true;
 out: