Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1614923
| From | Dmitry Monakhov <dmonakhov@openvz.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/7] bio-integrity: bio_trim should truncate integrity vector accordingly |
| Date | 2017-04-03 09:30 +0200 |
| Message-ID | <ts4B4-3Mv-3@gated-at.bofh.it> (permalink) |
| References | <ts4B4-3Mv-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[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
csiph-web