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:15:37 +0000 (07:15 +0200)
commitdee9ad44006842aa8e04b8895dba00a7035a5bad
treeb03847b905a5d8bdea97d7cc615adc0ca10de469
parentcb8b1858f25b87fd0d705822795fb6f7ef98b2ed
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