]> git.baikalelectronics.ru Git - kernel.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)
commit115fbfb5469d694d0919ac90220e091aea93c20a
treea374f6fcd3290ccce1872c6013799dc8c171a31e
parent11aa9063c88da2b6a189434394e4d8c1fc235601
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