Rename the flag to better describe the semantics.
Signed-off-by: Christoph Hellwig <hch@lst.de>
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_AUTOFREE_PAYLOAD)
kfree(page_address(bip->bip_vec->bv_page) +
bip->bip_vec->bv_offset);
goto err_end_io;
}
- bip->bip_flags |= BIP_BLOCK_INTEGRITY;
+ bip->bip_flags |= BIP_AUTOFREE_PAYLOAD;
bip->bip_iter.bi_size = len;
bip_set_seed(bip, bio->bi_iter.bi_sector);
}
enum bip_flags {
- BIP_BLOCK_INTEGRITY = 1 << 0, /* block layer owns integrity data */
+ BIP_AUTOFREE_PAYLOAD = 1 << 0, /* block layer owns integrity data */
BIP_MAPPED_INTEGRITY = 1 << 1, /* ref tag has been remapped */
};