block: Replace BIO_NO_PAGE_REF with BIO_PAGE_REFFED with inverted logic
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Mar 2023 16:35:46 +0000 (16:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Mar 2023 17:46:47 +0000 (11:46 -0600)
commite812d15adde4363c95f1743b7dd4946f1a550c5c
tree53346eeb9c5b39f61155a81705a9c63724d73cf0
parentcaf8aae59a7b1f668a32f91115ed8be3aebaaa41
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
Link: https://lore.kernel.org/r/20230315163549.295454-2-dhowells@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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