]> git.karo-electronics.de Git - linux-beck.git/commit
block: move two bvec structure into bvec.h
authorMing Lei <ming.lei@canonical.com>
Mon, 30 May 2016 13:34:30 +0000 (21:34 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 9 Jun 2016 16:02:47 +0000 (10:02 -0600)
commit0781e79eb206a62c30cc3eff75aaa889cd85b276
tree19bae7f4fe30e974076ab8655399aefdd7574dae
parent8fc554552c9d89e7bf76cd4cbc0085648bf3125b
block: move two bvec structure into bvec.h

This patch moves 'struct bio_vec' and 'struct bvec_iter'
into 'include/linux/bvec.h', then always include this header
into 'include/linux/blk_types.h'.

With this change, both 'struct bvec_iter' and bvec iterator
helpers don't depend on CONFIG_BLOCK any more, then we can
use bvec iterator to implement iterate_bvec(): lib/iov_iter.c.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/bio.h
include/linux/blk_types.h
include/linux/bvec.h