Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

raid1: copy write hint from master bio to behind bio

parent 8c242593
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,8 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio,
		goto skip_copy;
	}

	behind_bio->bi_write_hint = bio->bi_write_hint;

	while (i < vcnt && size) {
		struct page *page;
		int len = min_t(int, PAGE_SIZE, size);