OSDN Git Service

NFSv2: Fix write regression
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 27 Aug 2019 11:03:28 +0000 (07:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:12:51 +0000 (07:12 +0200)
commitc8030f7553bcef7cdadae246a90a6395e86cde1d
tree63006d770eb01d1113d59ce4cc0e479d5b839177
parentccc4f53a7d4576d25e96dfaa9b9a902f0755d08c
NFSv2: Fix write regression

[ Upstream commit d33d4beb522987d1c305c12500796f9be3687dee ]

Ensure we update the write result count on success, since the
RPC call itself does not do so.

Reported-by: Jan Stancek <jstancek@redhat.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/proc.c