]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bio_add_vmalloc helper
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 13:13:57 +0000 (14:13 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 13:15:07 +0000 (14:15 +0100)
commit96cf043ad1da57d3b72566f39b1c20094752db61
tree48c58cbeb32c333fcd57e11e8ef40fa62d8e0708
parent04c8e958517867ae95dcb225d2b5cb30fee439e8
block: add a bio_add_vmalloc helper

Add a helper to add a vmalloc region to a bio, abstracting away the
vmalloc addresses from the underlying pages.  Also add a helper to
calculate how many segments need to be allocated for a vmalloc region.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio.c
include/linux/bio.h