]> git.karo-electronics.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>
Tue, 24 Mar 2015 21:19:37 +0000 (17:19 -0400)
commit4bb8848b8cea7befc12f662486ca3534c7e48e29
treed93638259c098c62030fb4b4c8ac0d222d15c984
parent6bf375f6a770456b87e6008c86f1901b5161409f
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