aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 0a3988a25aab..853482015d3d 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1291,7 +1291,7 @@ read_again:
1291 * know the original bi_idx, so we just free 1291 * know the original bi_idx, so we just free
1292 * them all 1292 * them all
1293 */ 1293 */
1294 __bio_for_each_segment(bvec, mbio, j, 0) 1294 bio_for_each_segment_all(bvec, mbio, j)
1295 bvec->bv_page = r1_bio->behind_bvecs[j].bv_page; 1295 bvec->bv_page = r1_bio->behind_bvecs[j].bv_page;
1296 if (test_bit(WriteMostly, &conf->mirrors[i].rdev->flags)) 1296 if (test_bit(WriteMostly, &conf->mirrors[i].rdev->flags))
1297 atomic_inc(&r1_bio->behind_remaining); 1297 atomic_inc(&r1_bio->behind_remaining);