diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 617012bc107a..ddc1dfc4d3d2 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1435,9 +1435,9 @@ static void raid10d(mddev_t *mddev) | |||
1435 | sl--; | 1435 | sl--; |
1436 | d = r10_bio->devs[sl].devnum; | 1436 | d = r10_bio->devs[sl].devnum; |
1437 | rdev = conf->mirrors[d].rdev; | 1437 | rdev = conf->mirrors[d].rdev; |
1438 | atomic_add(s, &rdev->corrected_errors); | ||
1439 | if (rdev && | 1438 | if (rdev && |
1440 | test_bit(In_sync, &rdev->flags)) { | 1439 | test_bit(In_sync, &rdev->flags)) { |
1440 | atomic_add(s, &rdev->corrected_errors); | ||
1441 | if (sync_page_io(rdev->bdev, | 1441 | if (sync_page_io(rdev->bdev, |
1442 | r10_bio->devs[sl].addr + | 1442 | r10_bio->devs[sl].addr + |
1443 | sect + rdev->data_offset, | 1443 | sect + rdev->data_offset, |