]> 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>
Fri, 21 Mar 2025 13:17:41 +0000 (14:17 +0100)
commit422ff360b0e122b21d6f99a07edcf116f3866d4f
treec25647d4cb8bf5687e92977229c21021f01989ed
parenta09c3832536c4b154d540ca4632c1bb127142c64
dm-integrity: use bio_add_virt_nofail

Convert the __bio_add_page(..., virt_to_page(out), ...) 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>
drivers/md/dm-integrity.c