Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1614923 > unrolled thread
| Started by | Dmitry Monakhov <dmonakhov@openvz.org> |
|---|---|
| First post | 2017-04-03 09:30 +0200 |
| Last post | 2017-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.
[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
| From | Dmitry Monakhov <dmonakhov@openvz.org> |
|---|---|
| Date | 2017-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]
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2017-04-04 09:10 +0200 |
| Subject | Re: [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