mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "block: Fix the setting of same_page variable"
This commit is contained in:
commit
3da7849b99
1 changed files with 1 additions and 0 deletions
|
|
@ -807,6 +807,7 @@ bool __bio_try_merge_page(struct bio *bio, struct page *page,
|
|||
struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1];
|
||||
|
||||
if (page == bv->bv_page && off == bv->bv_offset + bv->bv_len) {
|
||||
*same_page = true;
|
||||
bv->bv_len += len;
|
||||
bio->bi_iter.bi_size += len;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue