From: Al Viro Date: Fri, 23 Jan 2015 06:08:07 +0000 (-0500) Subject: new helper: iov_iter_bvec() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~58^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05afcb77eb4713f46e7ebaa3cb54bc465c5d516e;p=pandora-kernel.git new helper: iov_iter_bvec() similar to iov_iter_kvec(), for ITER_BVEC ones Signed-off-by: Al Viro --- 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, } /* ... iov_iter */ - from.type = ITER_BVEC | WRITE; - from.bvec = array; - from.nr_segs = n; - from.count = sd.total_len - left; - from.iov_offset = 0; + iov_iter_bvec(&from, ITER_BVEC | WRITE, array, n, + sd.total_len - left); /* ... and iocb */ init_sync_kiocb(&kiocb, out); Reading git-diff-tree failed