Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614923 > unrolled thread

[PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly

Started byDmitry Monakhov <dmonakhov@openvz.org>
First post2017-04-03 09:30 +0200
Last post2017-04-04 09:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly Dmitry Monakhov <dmonakhov@openvz.org> - 2017-04-03 09:30 +0200
    Re: [PATCH 3/7] bio-integrity: bio_trim should truncate integrity  vector accordingly Christoph Hellwig <hch@infradead.org> - 2017-04-04 09:10 +0200

#1614923 — [PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly

FromDmitry Monakhov <dmonakhov@openvz.org>
Date2017-04-03 09:30 +0200
Subject[PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly
Message-ID<ts4B4-3Mv-3@gated-at.bofh.it>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 block/bio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/block/bio.c b/block/bio.c
index e75878f..fa84323 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1907,6 +1907,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);
 
-- 
2.9.3

[toc] | [next] | [standalone]


#1615734 — Re: [PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly

FromChristoph Hellwig <hch@infradead.org>
Date2017-04-04 09:10 +0200
SubjectRe: [PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly
Message-ID<tsqLf-1B3-7@gated-at.bofh.it>
In reply to#1614923
Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web