]> www.infradead.org Git - users/hch/misc.git/commit
block: simplify bio_map_kern
authorChristoph Hellwig <hch@lst.de>
Sat, 12 Apr 2025 07:57:41 +0000 (09:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 22 Apr 2025 03:21:42 +0000 (05:21 +0200)
commit3015af6b7f2e9122c4779855d06f5df91b718177
tree06a92f3a722ff9981b8987391cb6d513df67241f
parent6cb48ebb162e4f934031a371cfb8290be517c638
block: simplify bio_map_kern

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