diff options
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 181c9616d5f1..a06ff91f27e2 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1265,6 +1265,7 @@ static void sync_request_write(mddev_t *mddev, r1bio_t *r1_bio) | |||
1265 | if (r1_bio->bios[d]->bi_end_io != end_sync_read) | 1265 | if (r1_bio->bios[d]->bi_end_io != end_sync_read) |
1266 | continue; | 1266 | continue; |
1267 | rdev = conf->mirrors[d].rdev; | 1267 | rdev = conf->mirrors[d].rdev; |
1268 | atomic_add(s, &rdev->corrected_errors); | ||
1268 | if (sync_page_io(rdev->bdev, | 1269 | if (sync_page_io(rdev->bdev, |
1269 | sect + rdev->data_offset, | 1270 | sect + rdev->data_offset, |
1270 | s<<9, | 1271 | s<<9, |
@@ -1463,6 +1464,7 @@ static void raid1d(mddev_t *mddev) | |||
1463 | d = conf->raid_disks; | 1464 | d = conf->raid_disks; |
1464 | d--; | 1465 | d--; |
1465 | rdev = conf->mirrors[d].rdev; | 1466 | rdev = conf->mirrors[d].rdev; |
1467 | atomic_add(s, &rdev->corrected_errors); | ||
1466 | if (rdev && | 1468 | if (rdev && |
1467 | test_bit(In_sync, &rdev->flags)) { | 1469 | test_bit(In_sync, &rdev->flags)) { |
1468 | if (sync_page_io(rdev->bdev, | 1470 | if (sync_page_io(rdev->bdev, |