Skip to content
Commit 399254aa authored by Jens Axboe's avatar Jens Axboe
Browse files

block: add BIO_NO_PAGE_REF flag



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>
parent 875f1d07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment