Commit dba40d46 authored by Mariusz Dabrowski's avatar Mariusz Dabrowski Committed by Shaohua Li

raid1: copy write hint from master bio to behind bio

Signed-off-by: default avatarMariusz Dabrowski <mariusz.dabrowski@intel.com>
Reviewed-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-by: default avatarPawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 8c242593
...@@ -1102,6 +1102,8 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio, ...@@ -1102,6 +1102,8 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio,
goto skip_copy; goto skip_copy;
} }
behind_bio->bi_write_hint = bio->bi_write_hint;
while (i < vcnt && size) { while (i < vcnt && size) {
struct page *page; struct page *page;
int len = min_t(int, PAGE_SIZE, size); int len = min_t(int, PAGE_SIZE, size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment