]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bdev_rw_virt helper
authorChristoph Hellwig <hch@lst.de>
Sat, 12 Apr 2025 08:08:42 +0000 (10:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 18:59:13 +0000 (13:59 -0500)
commitb0b5a93bfadb62b3d54d086646cb403603d1fcc1
tree9a2473f2051ba10bae2b7a461d9e592fa2b0aace
parent43f7aecd651485a299f5cb52d8072bb53776a3ac
block: add a bdev_rw_virt helper

Add a helper to perform synchronous I/O on a kernel direct map range.
Currently this is implemented in various places in usually not very
efficient ways, so provide a generic helper instead.

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