dm-verity: switch to bio_advance_iter_single()
PATCH 1/1 dm-verity: switch to bio_advance_iter_single()
dm-verity doesn't support data blocks that span pages, and it sets dma_alignment accordingly. As such, instead of using bio_advance_iter(), it can use the more lightweight function bio_advance_iter_single() to get the same result.
Signed-off-by Eric Biggers <[email protected]>
--- drivers/md/dm-verity-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-verity-target.c +1 -1
@@ -526,11 +526,11 @@ static int verity_verify_io(struct dm_verity_io *io) iter = &iter_copy; }else iter = &io->iter;for (b =0 ; b < io->n_blocks; - b++,bio_advance_iter (bio, iter, block_size)) { + b++,bio_advance_iter_single (bio, iter, block_size)) {sector_t blkno = io->block + b;struct pending_block *block;bool is_zero;struct bio_vec bv;void *data;
base-commit: 8fbb8fe75d4cf92eaa7b21828ec39c1bf79a262f
Signature · 1 line
2.52.0
Quoted 7 lines · Eric Biggers
dm-verity doesn't support data blocks that span pages, and it sets
dma_alignmentaccordingly. As such, instead of usingbio_advance_iter(), it can use the more lightweight functionbio_advance_iter_single()to get the same result.Signed-off-by Eric Biggers <[email protected]>
Reviewed-by Sami Tolvanen <[email protected]>
Sami