From: Al Viro Date: Sat, 15 Mar 2014 08:05:57 +0000 (-0400) Subject: new helper: iov_iter_get_pages() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~45^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2c99d15559e285384c742db52316802e24b0bd;p=pandora-kernel.git new helper: iov_iter_get_pages() iov_iter_get_pages(iter, pages, maxsize, &start) grabs references pinning the pages of up to maxsize of (contiguous) data from iter. Returns the amount of memory grabbed or -error. In case of success, the requested area begins at offset start in pages[0] and runs through pages[1], etc. Less than requested amount might be returned - either because the contiguous area in the beginning of iterator is smaller than requested, or because the kernel failed to pin that many pages. direct-io.c switched to using iov_iter_get_pages() Signed-off-by: Al Viro --- Reading git-diff-tree failed