block: blk-merge: fix blk_recount_segments()
authorMing Lei <tom.leiming@gmail.com>
Tue, 11 Nov 2014 16:15:41 +0000 (00:15 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 11 Nov 2014 23:24:15 +0000 (16:24 -0700)
commit7f60dcaaf91e911002007c7ae885ff6ef0f36c0d
treef2bff26f97cc3123ea2741714d0b1ba0658e16ba
parent92697dc9471b8655a2f1203fa351bc37b2d46a26
block: blk-merge: fix blk_recount_segments()

For cloned bio, bio->bi_vcnt can't be used at all, and we
have resort to bio_segments() to figure out how many
segment there are in the bio.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c