Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d33d4beb authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv2: Fix write regression



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

Reported-by: default avatarJan Stancek <jstancek@redhat.com>
Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: default avatarJan Stancek <jstancek@redhat.com>
parent 71affe9b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -616,8 +616,10 @@ static int nfs_proc_pgio_rpc_prepare(struct rpc_task *task,

static int nfs_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
{
	if (task->tk_status >= 0)
	if (task->tk_status >= 0) {
		hdr->res.count = hdr->args.count;
		nfs_writeback_update_inode(hdr);
	}
	return 0;
}