]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk-integrity: use iterator for mapping sg
authorKeith Busch <kbusch@kernel.org>
Wed, 13 Aug 2025 15:31:51 +0000 (08:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Aug 2025 13:44:39 +0000 (07:44 -0600)
commitc16b52a0a095888efdd5d76f7194caf2a4752256
tree7d24b220a2f8aa2d018ccbe463328c95c7b0cc94
parentfec9b16dc5550191fd85af118271ea00e8dcc5f8
blk-integrity: use iterator for mapping sg

Modify blk_rq_map_integrity_sg to use the blk-mq mapping iterator. This
produces more efficient code and converges the integrity mapping
implementations to reduce future maintenance burdens.

The function implementation moves from blk-integrity.c to blk-mq-dma.c
in order to use the types and functions private to that file.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250813153153.3260897-8-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-integrity.c
block/blk-mq-dma.c