aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-07-08 14:23:45 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-07-29 20:09:21 -0400
commitca3f9acb6d3faf78da2b63324f7c737dbddf7f69 (patch)
treea3159f59e320c23c548bbcbff30eb19f97e32ec1 /fs/nfsd/nfs4proc.c
parentSUNRPC: Fix server-side fault injection documentation (diff)
downloadlinux-dev-ca3f9acb6d3faf78da2b63324f7c737dbddf7f69.tar.xz
linux-dev-ca3f9acb6d3faf78da2b63324f7c737dbddf7f69.zip
NFSD: Demote a WARN to a pr_warn()
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>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index d267b9bcf1fc..5af9f8d1feb6 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -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: