block: add a bio_add_vmalloc helpers
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:28 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit8dd16f5e34693aa0aa6a4ed48427045008097e64
tree6c2645548aa5516cd416400838ab31fd72d04c08
parent75f88659e47dc570bdebddf77d7a3cd5f0845612
block: add a bio_add_vmalloc helpers

Add a helper to add a vmalloc region to a bio, abstracting away the
vmalloc addresses from the underlying pages and another one wrapping
it for the simple case where all data fits into a single bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250507120451.4000627-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h