• Andrew Morton's avatar
    [PATCH] use bio_get_nr_vecs() for sizing direct-io BIOs · e3b12fc1
    Andrew Morton authored
    From Badari Pulavarty.
    
    Rather than allocating maximum-sized BIOs, use the new
    bio_get_nr_vecs() hint when sizing the BIOs.
    
    Also keep track of the approximate upper-bound on the number of pages
    remaining to do, so we can again avoid allocating excessively-sized
    BIOs.
    e3b12fc1
direct-io.c 16.5 KB