From: Christoph Hellwig Date: Thu, 14 Nov 2013 16:50:28 +0000 (-0800) Subject: nfs: fix size updates for aio writes X-Git-Tag: v3.14-rc1~77^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9811cd57f4c6b5b60ec104de68a88303717e3106;p=pandora-kernel.git nfs: fix size updates for aio writes nfs_file_direct_write only updates the inode size if it succeeded and returned the number of bytes written. But in the AIO case nfs_direct_wait turns the return value into -EIOCBQUEUED and we skip the size update. Instead the aio completion path should updated it, which this patch does. The implementation is a little hacky because there is no obvious way to find out we are called for a write in nfs_direct_complete. Signed-off-by: Christoph Hellwig Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed