From: Al Viro Date: Mon, 3 Feb 2014 22:07:03 +0000 (-0500) Subject: introduce copy_page_to_iter, kill loop over iovec in generic_file_aio_read() X-Git-Tag: v3.15-rc1~16^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e58e79db8a1;p=pandora-kernel.git introduce copy_page_to_iter, kill loop over iovec in generic_file_aio_read() generic_file_aio_read() was looping over the target iovec, with loop over (source) pages nested inside that. Just set an iov_iter up and pass *that* to do_generic_file_aio_read(). With copy_page_to_iter() doing all work of mapping and copying a page to iovec and advancing iov_iter. Switch shmem_file_aio_read() to the same and kill file_read_actor(), while we are at it. Signed-off-by: Al Viro --- Reading git-diff-tree failed