• K
    block: Add bio_clone_fast() · 59d276fe
    Kent Overstreet 提交于
    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: NKent Overstreet <kmo@daterainc.com>
    59d276fe
bio.c 51.4 KB