block: set bip_vcnt correctly
authorAnuj Gupta <anuj20.g@samsung.com>
Wed, 26 Jun 2024 10:06:52 +0000 (15:36 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2024 20:34:54 +0000 (14:34 -0600)
commit3991657ae7074c3c497bf095093178bed37ea1b4
tree16a7e4e3977fc07abd2136364d7afc9d219487c6
parent5b026e34120766408e76ba19a0e33a9dc996f9f0
block: set bip_vcnt correctly

Set the bip_vcnt correctly in bio_integrity_init_user and
bio_integrity_copy_user. If the bio gets split at a later point,
this value is required to set the right bip_vcnt in the cloned bio.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240626100700.3629-3-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c