fs: remove aio_run_iocb
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2016 16:42:03 +0000 (11:42 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Oct 2016 17:09:42 +0000 (13:09 -0400)
commit89319d31d2d097da8e27fb0e0ae9d532f4f16827
tree157f0809709c4dd88818e5f76d84ef4aad196146
parent723c038475b78edc9327eb952f95f9881cc9d79d
fs: remove aio_run_iocb

Pass the ABI iocb structure to aio_setup_rw and let it handle the
non-vectored I/O case as well.  With that and a new helper for the AIO
return value handling we can now define new aio_read and aio_write
helpers that implement reads and writes in a self-contained way without
duplicating too much code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c