Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 376a78ab authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Jens Axboe
Browse files

bio-integrity: bio_trim should truncate integrity vector accordingly

parent 32825c45
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1900,6 +1900,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);