diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-11-14 08:50:28 -0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-01-13 17:29:48 -0500 |
commit | 9811cd57f4c6b5b60ec104de68a88303717e3106 (patch) | |
tree | 9ec25d5c066e63c43ca7fc8c7dcde6d6d7baf1c2 /Kconfig | |
parent | 78b19bae0813bd6f921ca58490196abd101297bd (diff) | |
download | linux-9811cd57f4c6b5b60ec104de68a88303717e3106.tar.gz linux-9811cd57f4c6b5b60ec104de68a88303717e3106.tar.bz2 linux-9811cd57f4c6b5b60ec104de68a88303717e3106.zip |
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 <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions