dm-bufio: use bio_add_virt_nofail
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:37 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit9134124ce1bac3d5228ee1b1fc7a879422ff74f6
treeaa8c19c851e62286790a8f8db1aedc8d2b37f21d
parent0cb8c299f81591699e908d1a6ad2dba6df642e25
dm-bufio: use bio_add_virt_nofail

Convert the __bio_add_page(..., virt_to_page(), ...) pattern to the
bio_add_virt_nofail helper implementing it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250507120451.4000627-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-bufio.c