]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
VFS: Add iov_iter_fault_in_multipages_readable()
authorAnton Altaparmakov <anton@tuxera.com>
Wed, 11 Mar 2015 14:43:31 +0000 (10:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:24:32 +0000 (22:24 -0400)
commit171a02032bf1e1bb35442a38d6e25e0dcbb85c63
treea374f6fcd3290ccce1872c6013799dc8c171a31e
parente5b811e38af7540b385c898d83eb0198310343fd
VFS: Add iov_iter_fault_in_multipages_readable()

simillar to iov_iter_fault_in_readable() but differs in that it is
not limited to faulting in the first iovec and instead faults in
"bytes" bytes iterating over the iovecs as necessary.

Also, instead of only faulting in the first and last page of the
range, all pages are faulted in.

This function is needed by NTFS when it does multi page file
writes.

Signed-off-by: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/uio.h
lib/iov_iter.c