]> www.infradead.org Git - users/hch/misc.git/commit
block: rewrite bio_map_kern using the better bio_add_* helpers
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 12:58:18 +0000 (13:58 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 13:16:01 +0000 (14:16 +0100)
commitb662fe0522b046e6bceec41fe464d82896777b34
treec0d945218cd66de6fcdb6cb5b5195c099340c4ad
parent2d058ba846d4758108232ece22136498b1041e62
block: rewrite bio_map_kern using the better bio_add_* helpers

Split bio_map_kern into a simple version that can use bio_add_virt_nofail
for kernel direct mapping addresses and a more complex bio_map_vmalloc
with the logic to chunk up and map vmalloc ranges using the
bio_add_vmalloc helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-map.c