]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bio_add_virt_nofail helper
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 12:43:38 +0000 (13:43 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 18:57:56 +0000 (13:57 -0500)
commit43f7aecd651485a299f5cb52d8072bb53776a3ac
tree7bb39d673cdbbb51f623ea3ec7b3f3244cbaccb8
parent53ec1abce79c986dc59e59d0c60d00088bcdf32a
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>
block/bio.c
include/linux/bio.h