• Kent Overstreet's avatar
    block: Add bio_clone_fast() · 59d276fe
    Kent Overstreet authored
    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>
    59d276fe
bio.c 51.4 KB