]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iov_iter: add bvec support
authorZach Brown <zab@zabbo.net>
Fri, 14 Jun 2013 20:54:13 +0000 (15:54 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 18 Sep 2013 15:16:27 +0000 (10:16 -0500)
commit66daeabae8993c6a7544744eb61e83597153a9bd
tree53bd628467fa76c6394143b6cc4112bae88f0d78
parent1d462294ee7dea1d2cc18cab8a8c52ba88c65517
iov_iter: add bvec support

This adds a set of iov_iter_ops calls which work with memory which is
specified by an array of bio_vec structs instead of an array of iovec
structs.

The big difference is that the pages referenced by the bio_vec elements
are pinned.  They don't need to be faulted in and we can always use
kmap_atomic() to map them one at a time.

Signed-off-by: Zach Brown <zab@zabbo.net>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
fs/iov-iter.c
include/linux/fs.h