• Andrew Morton's avatar
    [PATCH] Fix odd code in bio_add_page · ad1ee2b1
    Andrew Morton authored
    From: Neil Brown <neilb@cse.unsw.edu.au>
    
    With the current code in bio_add_page, if fail_segments is ever set, it
    stays set, so bio_add_page will eventually fail having recounted the
    segmentation once.
    
    I don't think this is intended.  This patch changes the code to allow
    success if the recounting the segments helps.
    
    (Jens has acked this)
    ad1ee2b1
bio.c 19.3 KB