raid1: copy write hint from master bio to behind bio
Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com> Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
This commit is contained in:
parent
8c24259323
commit
dba40d46eb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue