block: introduce mp_bvec_for_each_page() for iterating over page
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Feb 2019 12:40:13 +0000 (20:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 12:56:03 +0000 (05:56 -0700)
commit594b9a89af8e7629e95a4cd844d188361be32790
tree3ecf8a9d37bd6b7a7810e7c8ce8f2032dd578cf8
parentbbcbbd567cc15823a6e9d4e2c5899ea3defa7b6d
block: introduce mp_bvec_for_each_page() for iterating over page

mp_bvec_for_each_segment() is a bit big for the iteration, so introduce
a light-weight helper for iterating over pages, then 32bytes stack
space can be saved.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h