Skip to content
Commit 7f60dcaa authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

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: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 92697dc9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment