Message ID | 1494429652-9488-3-git-send-email-dmonakhov@openvz.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/bio.c b/block/bio.c index 888e780..2f01f1b 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1889,6 +1889,10 @@ void bio_trim(struct bio *bio, int offset, int size) bio_advance(bio, offset << 9); bio->bi_iter.bi_size = size; + + if (bio_integrity(bio)) + bio_integrity_trim(bio, 0, size); + } EXPORT_SYMBOL_GPL(bio_trim);