aio: refactor read/write iocb setup
authorChristoph Hellwig <hch@lst.de>
Wed, 2 May 2018 17:57:21 +0000 (19:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 May 2018 17:57:21 +0000 (19:57 +0200)
commit54843f875f7a9f802bbb0d9895c3266b4a0b2f37
tree913604f34f93f8af030a457f102216fef133f0b8
parent92ce4728563ad1fc42466f9bbecc1ac31d675894
aio: refactor read/write iocb setup

Don't reference the kiocb structure from the common aio code, and move
any use of it into helper specific to the read/write path.  This is in
preparation for aio_poll support that wants to use the space for different
fields.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/aio.c