]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: reuse original bio_vec array for integrity during clone
authorAnuj Gupta <anuj20.g@samsung.com>
Tue, 2 Jul 2024 10:07:53 +0000 (15:37 +0530)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Jul 2024 08:07:58 +0000 (02:07 -0600)
commitba942238056584efd3adc278a76592258d500918
tree05afe0584e51a7546919d8bbc8a19f0a7cd5b537
parenta18df07b7d3dbfa7ae54962cc59569002eaafd6d
block: reuse original bio_vec array for integrity during clone

Modify bio_integrity_clone to reuse the original bvec array instead of
allocating and copying it, similar to how bio data path is cloned.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20240702100753.2168-1-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c