Skip to content
Commit 5d84070e authored by Jens Axboe's avatar Jens Axboe
Browse files

__bio_clone: don't calculate hw/phys segment counts



If the users sets a new ->bi_bdev on the bio after __bio_clone() has
returned it, the "segment counts valid" flag still remains even though
it may be different with the new target. So don't calculate segment
counts in __bio_clone().

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 482eb689
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