diff options
author | Anuj Gupta <anuj20.g@samsung.com> | 2024-11-28 16:52:31 +0530 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-12-23 08:17:16 -0700 |
commit | 5dbb3cbd060aa86a722d7d44278e537ae3f63081 (patch) | |
tree | 5bf7257c383c2a42b085defb90d9de67adcfe1aa /block | |
parent | 7cd7b9575270e4c4f80cc5ff71b13f4102b59b9e (diff) | |
download | linux-stable-5dbb3cbd060aa86a722d7d44278e537ae3f63081.tar.gz linux-stable-5dbb3cbd060aa86a722d7d44278e537ae3f63081.tar.bz2 linux-stable-5dbb3cbd060aa86a722d7d44278e537ae3f63081.zip |
block: define set of integrity flags to be inherited by cloned bip
Introduce BIP_CLONE_FLAGS describing integrity flags that should be
inherited in the cloned bip from the parent.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20241128112240.8867-2-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/bio-integrity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio-integrity.c b/block/bio-integrity.c index 2a4bd6611692..a448a25d13de 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -559,7 +559,7 @@ int bio_integrity_clone(struct bio *bio, struct bio *bio_src, bip->bip_vec = bip_src->bip_vec; bip->bip_iter = bip_src->bip_iter; - bip->bip_flags = bip_src->bip_flags & ~BIP_BLOCK_INTEGRITY; + bip->bip_flags = bip_src->bip_flags & BIP_CLONE_FLAGS; return 0; } |