block: introduce bvec_nth_page()
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Feb 2019 12:40:10 +0000 (20:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Feb 2019 13:18:52 +0000 (06:18 -0700)
commit4d633062c1c0794a6b3836b7b55afba4599736e8
tree548fd74a24fae2181f63fdde531ff63cc953d6c5
parent81214bab582eeda068e7904d57b6a3095e8f3855
block: introduce bvec_nth_page()

Single-page bvec can often be seen in small BS workloads, so
introduce bvec_nth_page() for avoiding to call nth_page() unnecessarily,
which looks not cheap.

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