struct bio_integrity_payload *bip = bio_integrity(bio);
struct bio_set *bs = bio->bi_pool;
- if (bip->bip_flags & BIP_BLOCK_INTEGRITY)
+ if (bip->bip_flags & BIP_FREE_PAYLOAD)
kfree(bvec_virt(bip->bip_vec));
__bio_integrity_free(bs, bip);
goto err_end_io;
}
- bip->bip_flags |= BIP_BLOCK_INTEGRITY;
+ bip->bip_flags |= BIP_FREE_PAYLOAD;
bip->bip_iter.bi_size = len;
bip_set_seed(bip, bio->bi_iter.bi_sector);
for (bio_first_folio(&fi, bio, 0); fi.folio; bio_next_folio(&fi, bio))
enum bip_flags {
- BIP_BLOCK_INTEGRITY = 1 << 0, /* block layer owns integrity data */
+ BIP_FREE_PAYLOAD = 1 << 0, /* block layer frees integrity data */
BIP_MAPPED_INTEGRITY = 1 << 1, /* ref tag has been remapped */
};