Skip to content
Commit 59d276fe authored by Kent Overstreet's avatar Kent Overstreet
Browse files

block: Add bio_clone_fast()



bio_clone() just got more expensive - however, most users of bio_clone()
don't actually need to modify the biovec. If they aren't modifying the
biovec, and they can guarantee that the original bio isn't freed before
the clone (also true in most cases), we can just point the clone at the
original bio's biovec.

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
parent bdb53207
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