block: optimize blk_bio_segment_split for single-page bvec
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Feb 2019 12:40:12 +0000 (20:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Feb 2019 13:18:55 +0000 (06:18 -0700)
commitbbcbbd567cc15823a6e9d4e2c5899ea3defa7b6d
tree22cd9755657f63bd596496b2e59b866d3833f0d1
parent48d7727cae1209235700ed90f8f11426027b333b
block: optimize blk_bio_segment_split for single-page bvec

Introduce a fast path for single-page bvec IO, then we can avoid
to call bvec_split_segs() unnecessarily.

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