block: Add BIO_PAGE_PINNED and associated infrastructure
authorDavid Howells <dhowells@redhat.com>
Mon, 22 May 2023 20:57:42 +0000 (21:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 May 2023 14:42:44 +0000 (08:42 -0600)
commitfd363244e883323e1ac9412d96fd22b51e255b0c
treea4ab29760b6dac530b091b7d8bb0ba6d79cc6f2c
parente51bab4e20586fb3afc30536b776a97ed8ffb681
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
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230522205744.2825689-5-dhowells@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk.h
include/linux/bio.h
include/linux/blk_types.h