Merge "block: Fix the setting of same_page variable"

This commit is contained in:
qctecmdr 2020-12-21 16:11:24 -08:00 • committed by Gerrit - the friendly Code Review server
commit 3da7849b99

View file

@ -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;