• Jens Axboe's avatar
    block: add BIO_NO_PAGE_REF flag · 399254aa
    Jens Axboe authored
    If bio_iov_iter_get_pages() is called on an iov_iter that is flagged
    with NO_REF, then we don't need to add a page reference for the pages
    that we add.
    
    Add BIO_NO_PAGE_REF to track this in the bio, so IO completion knows
    not to drop a reference to these pages.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    399254aa
bio.c 54.5 KB