]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bio_add_virt_nofail helper
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:25 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit850e210d5ad21b94b55b97d4d82b4cdeb0bb05df
treebd3120cc7103dde23736066126b17a5d189ff14c
parentf31acff017b1d80e649f674450d3b64d3265848c
block: add a bio_add_virt_nofail helper

Add a helper to add a directly mapped kernel virtual address to a
bio so that callers don't have to convert to pages or folios.

For now only the _nofail variant is provided as that is what all the
obvious callers want.

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