]> git.baikalelectronics.ru Git - kernel.git/commit
block: introduce bio_for_each_bvec() and rq_for_each_bvec()
authorMing Lei <ming.lei@redhat.com>
Fri, 15 Feb 2019 11:13:11 +0000 (19:13 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 Feb 2019 15:40:10 +0000 (08:40 -0700)
commit8a81b30389838cd8198516d47dc5e29495a13ebf
tree1a894d857f4d7a407e21afa34e1ad02344a0efd5
parenta6d43c3333e28801e6bdc42133539abb17dd0ee2
block: introduce bio_for_each_bvec() and rq_for_each_bvec()

bio_for_each_bvec() is used for iterating over multi-page bvec for bio
split & merge code.

rq_for_each_bvec() can be used for drivers which may handle the
multi-page bvec directly, so far loop is one perfect use case.

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>
include/linux/bio.h
include/linux/blkdev.h