]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdf0f1f07058492d48f9ea2f56ddc1549376e028
tree1fe45de8fea776f50a7bbfa970c17973a79f40da
parent47d3dbc7345c44751656eed8ad0d0d89e3f103ce
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]