]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/iov_iter.c
new helper: iov_iter_get_pages()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 Mar 2014 08:05:57 +0000 (04:05 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 6 May 2014 21:32:50 +0000 (17:32 -0400)
commit7b2c99d15559e285384c742db52316802e24b0bd
tree0f5260039ca25431decd1affc281aea5a5da27da
parent3320c60b3a26d05666285c55ab08ee043c017ba3
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 <viro@zeniv.linux.org.uk>
fs/direct-io.c
include/linux/uio.h
mm/iov_iter.c