summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@linux.intel.com>2014-08-01 09:27:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-09 02:39:03 -0400
commitc35e02480014f7a86e264a2fda39a568690163da (patch)
tree6b1f1afc1c19bcbfc9c96f707c93627b0f4acbf3 /scripts
parent475d0db742e3755c6b267f48577ff7cbb7dfda0d (diff)
downloadop-kernel-dev-c35e02480014f7a86e264a2fda39a568690163da.zip
op-kernel-dev-c35e02480014f7a86e264a2fda39a568690163da.tar.gz
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 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud