NFSD: Return nfserr_serverfault if splice_ok but buf->pages have data
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 13 Sep 2022 18:01:50 +0000 (14:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:32 +0000 (12:35 +0200)
commit118dc74b2bc08dec271e0eb0c77fa637333e0fff
tree9dc0e29828788b45d745a5a4370ba6c8f150fa67
parent066b1302f2a9f07d268da73ef5557b886d4dee25
NFSD: Return nfserr_serverfault if splice_ok but buf->pages have data

[ Upstream commit 06981d560606ac48d61e5f4fff6738b925c93173 ]

This was discussed with Chuck as part of this patch set. Returning
nfserr_resource was decided to not be the best error message here, and
he suggested changing to nfserr_serverfault instead.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Link: https://lore.kernel.org/linux-nfs/20220907195259.926736-1-anna@kernel.org/T/#t
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4xdr.c