]> www.infradead.org Git - users/hch/misc.git/commit
dm-integrity: use bio_add_virt_nofail
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 12:46:36 +0000 (13:46 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 19:03:20 +0000 (14:03 -0500)
commitf52f1f3a92b5fbc04343a80be06820bf5b88e807
treef51b4205b9e6c44feb1b8feb71a064ac647e66a9
parentde9e1acc6ae9979abb97afe27ee9a97d181bdb89
dm-integrity: use bio_add_virt_nofail

Convert the __bio_add_page(..., virt_to_page(), ...) pattern to the
bio_add_virt_nofail helper implementing it, and do the same for the
similar pattern using bio_add_page for adding the first segment after
a bio allocation as that can't fail either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
drivers/md/dm-integrity.c