]> www.infradead.org Git - users/hch/block.git/commitdiff
block: rename BIP_BLOCK_INTEGRITY to BIP_AUTOFREE_PAYLOAD
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 12:13:53 +0000 (14:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 Jun 2021 06:12:03 +0000 (08:12 +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 196156ed95a103633bb8da2ae08b829ec802f9ea..0427946a64230f89da50facb25a3dc1d2eb0bc41 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_AUTOFREE_PAYLOAD)
                kfree(page_address(bip->bip_vec->bv_page) +
                      bip->bip_vec->bv_offset);
 
@@ -255,7 +255,7 @@ bool bio_integrity_prep(struct bio *bio)
                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);
 
index 3fcd06e910f4b8abcdf8edc24aa24be3db0d43f5..09395e55182fb31795ced7d486ea072709fd49cc 100644 (file)
@@ -318,7 +318,7 @@ static inline struct bio_vec *bio_last_bvec_all(struct bio *bio)
 }
 
 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 */
 };