block: add bio_add_zone_append_page
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 4 Feb 2021 10:21:40 +0000 (19:21 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 23:52:19 +0000 (00:52 +0100)
commitae29333fa644679b96d88c9dd3afbef25cbac0f6
tree76a1b371e413ffc649dab57d842ad9bde5e04227
parent72c9925f87c8b74f36f8e75a4cd93d964538d3ca
block: add bio_add_zone_append_page

Add bio_add_zone_append_page(), a wrapper around bio_add_hw_page() which
is intended to be used by file systems that directly add pages to a bio
instead of using bio_iov_iter_get_pages().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
block/bio.c
include/linux/bio.h