aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-01-23 01:08:07 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2015-01-29 00:13:11 -0500
commit05afcb77eb4713f46e7ebaa3cb54bc465c5d516e (patch)
treefeeafbb29a9a41fb7d85ff55fdb624eaa918907f /fs/splice.c
parent26bc420b59a38e4e6685a73345a0def461136dce (diff)
new helper: iov_iter_bvec()
similar to iov_iter_kvec(), for ITER_BVEC ones Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 75c6058eabf2..7c7176f2d1e7 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -1006,11 +1006,8 @@ iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
1006 } 1006 }
1007 1007
1008 /* ... iov_iter */ 1008 /* ... iov_iter */
1009 from.type = ITER_BVEC | WRITE; 1009 iov_iter_bvec(&from, ITER_BVEC | WRITE, array, n,
1010 from.bvec = array; 1010 sd.total_len - left);
1011 from.nr_segs = n;
1012 from.count = sd.total_len - left;
1013 from.iov_offset = 0;
1014 1011
1015 /* ... and iocb */ 1012 /* ... and iocb */
1016 init_sync_kiocb(&kiocb, out); 1013 init_sync_kiocb(&kiocb, out);