On Tue, Apr 12, 2022 at 10:58:14PM +0800, Ming Lei wrote: > Unit of bio->bi_iter.bi_size is bytes, but unit of offset/size > is sector. > > Fix the above issue in checking offset/size in bio_trim(). Just use bio_sectors() instead.
On Tue, Apr 12, 2022 at 10:58:14PM +0800, Ming Lei wrote: > Unit of bio->bi_iter.bi_size is bytes, but unit of offset/size > is sector. > > Fix the above issue in checking offset/size in bio_trim(). Just use bio_sectors() instead.