]> git.ipfire.org Git - thirdparty/linux.git/commit
block: don't free the integrity payload in bio_integrity_unmap_free_user
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Jul 2024 15:10:24 +0000 (17:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Jul 2024 16:21:16 +0000 (10:21 -0600)
commit74cc150282e41c6c0704cd305c9a4392dc64ef4d
tree26eac2a44a351acfffe8f5367e0af1f647ebdb09
parent85253bac4d02b1f95d6109c221aeccd7a262ec4d
block: don't free the integrity payload in bio_integrity_unmap_free_user

Now that the integrity payload is always freed in bio_uninit, don't
bother freeing it a little earlier in bio_integrity_unmap_free_user.
With that the separate bio_integrity_unmap_free_user can go away by
just passing the bio to bio_integrity_unmap_user.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240702151047.1746127-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
block/blk-map.c
include/linux/bio-integrity.h