block: Replace BIO_NO_PAGE_REF with BIO_PAGE_REFFED with inverted logic
authorChristoph Hellwig <hch@lst.de>
Sat, 21 Jan 2023 07:54:45 +0000 (08:54 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 17:09:41 +0000 (17:09 +0000)
commitc0ba657dee9a8d25b7c2e17aecc7b6cf07f568a5
tree65d1c0c14ac6a445ab5e953d6ea6402d755d2c85
parent758a53d2d70feb8bc4b2b8fcbb4706b18a1ce406
block: Replace BIO_NO_PAGE_REF with BIO_PAGE_REFFED with inverted logic

Replace BIO_NO_PAGE_REF with a BIO_PAGE_REFFED flag that has the inverted
meaning is only set when a page reference has been acquired that needs to
be released by bio_release_pages().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Howells <dhowells@redhat.com>
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-map.c
fs/direct-io.c
fs/iomap/direct-io.c
include/linux/bio.h
include/linux/blk_types.h