]> Git Repo - linux.git/commitdiff
raid1: copy write hint from master bio to behind bio
authorMariusz Dabrowski <[email protected]>
Wed, 14 Feb 2018 13:23:30 +0000 (14:23 +0100)
committerShaohua Li <[email protected]>
Mon, 9 Apr 2018 15:54:34 +0000 (08:54 -0700)
Signed-off-by: Mariusz Dabrowski <[email protected]>
Reviewed-by: Artur Paszkiewicz <[email protected]>
Reviewed-by: Pawel Baldysiak <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
drivers/md/raid1.c

index 6f624311cec22592cc65d9cfd63d681cb3890476..e9e3308cb0a75948e54c135d9b5da2621c073bc6 100644 (file)
@@ -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);
This page took 0.057864 seconds and 4 git commands to generate.