block: Add BIO_PAGE_PINNED and associated infrastructure
authorDavid Howells <dhowells@redhat.com>
Sat, 21 Jan 2023 07:56:34 +0000 (08:56 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 17:09:41 +0000 (17:09 +0000)
commit05ff1025fa17fbdc4f1d2601c95cdefd87c5ed91
tree1ecde2eb5625e5e864f60a872d5b8d61d0c0ecc7
parentc0ba657dee9a8d25b7c2e17aecc7b6cf07f568a5
block: Add BIO_PAGE_PINNED and associated infrastructure

Add BIO_PAGE_PINNED to indicate that the pages in a bio are pinned
(FOLL_PIN) and that the pin will need removing.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
cc: Al Viro <viro@zeniv.linux.org.uk>
cc: Jens Axboe <axboe@kernel.dk>
cc: Jan Kara <jack@suse.cz>
cc: Matthew Wilcox <willy@infradead.org>
cc: Logan Gunthorpe <logang@deltatee.com>
cc: linux-block@vger.kernel.org
block/bio.c
block/blk.h
include/linux/bio.h
include/linux/blk_types.h