summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/bio.c b/block/bio.c
index 1cfcd0df3f30..5b4b32a2f8d0 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1900,6 +1900,10 @@ void bio_trim(struct bio *bio, int offset, int size)
1900 bio_advance(bio, offset << 9); 1900 bio_advance(bio, offset << 9);
1901 1901
1902 bio->bi_iter.bi_size = size; 1902 bio->bi_iter.bi_size = size;
1903
1904 if (bio_integrity(bio))
1905 bio_integrity_trim(bio, 0, size);
1906
1903} 1907}
1904EXPORT_SYMBOL_GPL(bio_trim); 1908EXPORT_SYMBOL_GPL(bio_trim);
1905 1909