diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 03825cbce2d4..69b659544390 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1560,9 +1560,9 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1560 | rcu_read_unlock(); | 1560 | rcu_read_unlock(); |
1561 | success = sync_page_io(rdev, | 1561 | success = sync_page_io(rdev, |
1562 | r10_bio->devs[sl].addr + | 1562 | r10_bio->devs[sl].addr + |
1563 | sect + rdev->data_offset, | 1563 | sect, |
1564 | s<<9, | 1564 | s<<9, |
1565 | conf->tmppage, READ); | 1565 | conf->tmppage, READ, false); |
1566 | rdev_dec_pending(rdev, mddev); | 1566 | rdev_dec_pending(rdev, mddev); |
1567 | rcu_read_lock(); | 1567 | rcu_read_lock(); |
1568 | if (success) | 1568 | if (success) |
@@ -1599,8 +1599,8 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1599 | atomic_add(s, &rdev->corrected_errors); | 1599 | atomic_add(s, &rdev->corrected_errors); |
1600 | if (sync_page_io(rdev, | 1600 | if (sync_page_io(rdev, |
1601 | r10_bio->devs[sl].addr + | 1601 | r10_bio->devs[sl].addr + |
1602 | sect + rdev->data_offset, | 1602 | sect, |
1603 | s<<9, conf->tmppage, WRITE) | 1603 | s<<9, conf->tmppage, WRITE, false) |
1604 | == 0) { | 1604 | == 0) { |
1605 | /* Well, this device is dead */ | 1605 | /* Well, this device is dead */ |
1606 | printk(KERN_NOTICE | 1606 | printk(KERN_NOTICE |
@@ -1636,9 +1636,9 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1636 | rcu_read_unlock(); | 1636 | rcu_read_unlock(); |
1637 | if (sync_page_io(rdev, | 1637 | if (sync_page_io(rdev, |
1638 | r10_bio->devs[sl].addr + | 1638 | r10_bio->devs[sl].addr + |
1639 | sect + rdev->data_offset, | 1639 | sect, |
1640 | s<<9, conf->tmppage, | 1640 | s<<9, conf->tmppage, |
1641 | READ) == 0) { | 1641 | READ, false) == 0) { |
1642 | /* Well, this device is dead */ | 1642 | /* Well, this device is dead */ |
1643 | printk(KERN_NOTICE | 1643 | printk(KERN_NOTICE |
1644 | "md/raid10:%s: unable to read back " | 1644 | "md/raid10:%s: unable to read back " |