diff options
author | Ming Lei <ming.lei@redhat.com> | 2019-02-15 19:13:17 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-15 08:40:11 -0700 |
commit | 86af5952a8470f96b53830372c64469cb7ce780c (patch) | |
tree | 073d8c2173109a8a05bdbb7963d70e29d36c854e /include/linux/bio.h | |
parent | btrfs: use mp_bvec_last_segment to get bio's last page (diff) | |
download | wireguard-linux-86af5952a8470f96b53830372c64469cb7ce780c.tar.xz wireguard-linux-86af5952a8470f96b53830372c64469cb7ce780c.zip |
block: loop: pass multi-page bvec to iov_iter
iov_iter is implemented on bvec itererator helpers, so it is safe to pass
multi-page bvec to it, and this way is much more efficient than passing one
page in each bvec.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/bio.h')
0 files changed, 0 insertions, 0 deletions