]> git.ipfire.org Git - thirdparty/linux.git/commit
bio-integrity-fs: pass data iter to bio_integrity_verify()
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 13 May 2026 18:29:21 +0000 (12:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 May 2026 17:38:21 +0000 (11:38 -0600)
commit431e40042d3599559e588b8946bb28bd440b4f65
tree91cd98a66d3f6daa2bb727cea88c37db82f03824
parent4141f46daa4cf1f8caa14129f8b6db86f17452f5
bio-integrity-fs: pass data iter to bio_integrity_verify()

bio_integrity_verify() expects the passed struct bvec_iter to be an
iterator over bio data, not integrity. So construct a separate data
bvec_iter without the bio_integrity_bytes() conversion and pass it to
bio_integrity_verify() instead of bip_iter.

Fixes: 0bde8a12b554 ("block: add fs_bio_integrity helpers")
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260513182924.1753582-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity-fs.c