diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2014-08-01 09:27:22 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-09 02:39:03 -0400 |
commit | c35e02480014f7a86e264a2fda39a568690163da (patch) | |
tree | 6b1f1afc1c19bcbfc9c96f707c93627b0f4acbf3 /usr | |
parent | 475d0db742e3755c6b267f48577ff7cbb7dfda0d (diff) |
Add copy_to_iter(), copy_from_iter() and iov_iter_zero()
For DAX, we want to be able to copy between iovecs and kernel addresses
that don't necessarily have a struct page. This is a fairly simple
rearrangement for bvec iters to kmap the pages outside and pass them in,
but for user iovecs it gets more complicated because we might try various
different ways to kmap the memory. Duplicating the existing logic works
out best in this case.
We need to be able to write zeroes to an iovec for reads from unwritten
ranges in a file. This is performed by the new iov_iter_zero() function,
again patterned after the existing code that handles iovec iterators.
[AV: and export the buggers...]
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions