]> git.baikalelectronics.ru Git - kernel.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)
commit36212d9cb703c6613bb5edd722742908e0852b24
tree319206f280d9b57c45dfa2a42e869b25270611f4
parent6ba565c02565abb567d756001d486eab576ccf53
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