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:17:02 +0000 (07:17 +0200)
commit0f7130177325cedca5155724d928139d9aa8acd6
tree93426b33190b3fe03fe113e6ca7d121a724924d0
parent60f0d449601d7c4c375ffd3083b4c65f0950288c
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