]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bio_add_max_vecs helper
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 18:51:46 +0000 (13:51 -0500)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 18:59:13 +0000 (13:59 -0500)
commitc658283b0ec123ec6a20289ee3034508e19fd5fb
tree8f1f26122c5adc4cb0db26cde6bbf16c3b0e1ab9
parentb0b5a93bfadb62b3d54d086646cb403603d1fcc1
block: add a bio_add_max_vecs helper

Add a helper to check how many bio_vecs are needed to add a kernel
virtual address range to a bio, accounting for the always contiguous
direct mapping and vmalloc mappings that usually need a bio_vec
per page sized chunk.

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