mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* block & iov_iter: use bvec iterator to implement iterate_bvec()
@ 2016-03-08 11:29 Ming Lei
  2016-03-08 11:29 ` [PATCH 1/4] block: move bvec iterator into include/linux/bvec_iter.h Ming Lei
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ming Lei @ 2016-03-08 11:29 UTC (permalink / raw)
  To: Jens Axboe, linux-kernel
  Cc: linux-block, Christoph Hellwig, Al Viro, Anton Altaparmakov

Hi Guys,

The 1st two patches move bvec iterator helpers out from bio.h, then
they can be used even if CONFIG_BLOCK is disabled, so not necessary
to use iov iter own approach to do the job.

One motivation is that in the future we may support multipage bvecs,
as interests[1] have been shown in this idea, so looks better to
unify the implementation now.

[1], http://marc.info/?w=2&r=1&s=++[LSF%2FMM+ATTEND]+block%3A+multipage+bvecs&q=t
 

 include/linux/bio.h       | 55 +------------------------------------------
 include/linux/blk_types.h |  4 ++--
 include/linux/bvec_iter.h | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/iov_iter.c            | 31 +++++++++---------------
 4 files changed, 93 insertions(+), 76 deletions(-)


Thanks,
Ming

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-08 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-08 11:29 block & iov_iter: use bvec iterator to implement iterate_bvec() Ming Lei
2016-03-08 11:29 ` [PATCH 1/4] block: move bvec iterator into include/linux/bvec_iter.h Ming Lei
2016-03-08 11:29 ` [PATCH 2/4] block: make 'struct bvec_iter' not depend on CONFIG_BLOCK Ming Lei
2016-03-08 11:29 ` [PATCH 3/4] block: mark 1st parameter of bvec_iter_advance as const Ming Lei
2016-03-08 11:29 ` [PATCH 4/4] iov_iter: use bvec iterator to implement iterate_bvec() Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®