block: move bvec iterator into include/linux/bvec.h
authorMing Lei <ming.lei@canonical.com>
Thu, 9 Jun 2016 16:00:58 +0000 (10:00 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 9 Jun 2016 16:00:58 +0000 (10:00 -0600)
commit8fc554552c9d89e7bf76cd4cbc0085648bf3125b
tree1fe45de8fea776f50a7bbfa970c17973a79f40da
parent52b9c330c6a8a4b5a1819bdaddf4ec76ab571e81
block: move bvec iterator into include/linux/bvec.h

bvec iterator helpers should be used to implement by
iterate_bvec():lib/iov_iter.c too, and move them into
one header, so that we can keep bvec iterator header
out of CONFIG_BLOCK. Then we can remove the reinventing
of wheel in iterate_bvec().

Reviewed-by: Christoph Hellwig <hch@lst.de>
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/bvec.h [new file with mode: 0644]