aio: lift iov_iter_init() into aio_setup_..._rw()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 21 Mar 2015 00:17:32 +0000 (20:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:26:45 +0000 (22:26 -0400)
commit4c185ce06dca14f5cea192f5a2c981ef50663f2b
tree1a6d775a568d477089b85690160f11b07a812180
parentac15ac0669d5f5ce7fddec0d9cf3721c42d77a2c
aio: lift iov_iter_init() into aio_setup_..._rw()

the only non-trivial detail is that we do it before rw_verify_area(),
so we'd better cap the length ourselves in aio_setup_single_rw()
case (for vectored case rw_copy_check_uvector() will do that for us).

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