]> www.infradead.org Git - users/hch/block.git/commitdiff
block: rename BIP_BLOCK_INTEGRITY to BIP_FREE_PAYLOAD
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 12:13:53 +0000 (14:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 9 Jun 2022 07:06:38 +0000 (09:06 +0200)
Rename the flag to better describe the semantics.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio-integrity.c
include/linux/bio.h

index c3ae0abd556132b4e8ecf11fa6f92c3a0e3e1be1..1dbcf5ea6618a99bb4823783d422b06252e24616 100644 (file)
@@ -103,7 +103,7 @@ void bio_integrity_free(struct bio *bio)
        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);
@@ -253,7 +253,7 @@ bool bio_integrity_prep(struct bio *bio)
                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);
 
index c08ebabfd6690c7584f655bcf5edf4fb597b161e..815a6c1576e83251d6a18a98476c45ebf54426ee 100644 (file)
@@ -312,7 +312,7 @@ static inline void bio_next_folio(struct folio_iter *fi, struct bio *bio)
        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 */
 };