diff options
author | Christoph Hellwig <hch@lst.de> | 2017-08-09 17:48:09 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-09 18:00:31 +0200 |
commit | 62d20aa6a01e13c03f01bc92ba845153cb603299 (patch) | |
tree | dc49d6002d501835ce5811b5ab8ea487b9fbff67 | |
parent | bio-integrity: move the bio integrity profile check earlier in bio_integrity_... (diff) | |
download | linux-62d20aa6a01e13c03f01bc92ba845153cb603299.tar.xz linux-62d20aa6a01e13c03f01bc92ba845153cb603299.zip |
dm-crypt: don't mess with BIP_BLOCK_INTEGRITY
This flag is never set right after calling bio_integrity_alloc,
so don't clear it and confuse the reader.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/dm-crypt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index cdf6b1e12460..73c2e270cda6 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -933,9 +933,6 @@ static int dm_crypt_integrity_io_alloc(struct dm_crypt_io *io, struct bio *bio) bip->bip_iter.bi_size = tag_len; bip->bip_iter.bi_sector = io->cc->start + io->sector; - /* We own the metadata, do not let bio_free to release it */ - bip->bip_flags &= ~BIP_BLOCK_INTEGRITY; - ret = bio_integrity_add_page(bio, virt_to_page(io->integrity_metadata), tag_len, offset_in_page(io->integrity_metadata)); if (unlikely(ret != tag_len)) |