diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-03 15:05:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-05-06 17:39:42 -0400 |
commit | f0d1bec9d58d4c038d0ac958c9af82be6eb18045 (patch) | |
tree | dd8f6896941a030b723fedbaff6e64e3073ba6fc /include/linux/uio.h | |
parent | 84c3d55cc474f9c234c023c92e2769f940d5548c (diff) |
new helper: copy_page_from_iter()
parallel to copy_page_to_iter(). pipe_write() switched to it (and became
->write_iter()).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r-- | include/linux/uio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index 532f59d0adbb..66012352d333 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h | |||
@@ -68,6 +68,8 @@ int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes); | |||
68 | size_t iov_iter_single_seg_count(const struct iov_iter *i); | 68 | size_t iov_iter_single_seg_count(const struct iov_iter *i); |
69 | size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, | 69 | size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, |
70 | struct iov_iter *i); | 70 | struct iov_iter *i); |
71 | size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes, | ||
72 | struct iov_iter *i); | ||
71 | unsigned long iov_iter_alignment(const struct iov_iter *i); | 73 | unsigned long iov_iter_alignment(const struct iov_iter *i); |
72 | void iov_iter_init(struct iov_iter *i, int direction, const struct iovec *iov, | 74 | void iov_iter_init(struct iov_iter *i, int direction, const struct iovec *iov, |
73 | unsigned long nr_segs, size_t count); | 75 | unsigned long nr_segs, size_t count); |