]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: add BIO_NO_PAGE_REF flag
authorJens Axboe <axboe@kernel.dk>
Wed, 27 Feb 2019 20:13:23 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Mar 2019 16:44:48 +0000 (10:44 -0600)
commit399254aaf4892113c806816f7e64cf40c804d46d
tree319206f280d9b57c45dfa2a42e869b25270611f4
parent875f1d0769cdcfe1596ff0ca609b453359e42ec9
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: Jens Axboe <axboe@kernel.dk>
block/bio.c
fs/block_dev.c
fs/iomap.c
include/linux/blk_types.h