diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 89fa9c706b380f095aea667be63f351eb532d903..0e0335e77ce68c1044fc4cef4397f2e6fc4f817f 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -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; }