diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2011-01-13 17:14:33 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-13 17:14:33 -0500 |
commit | ccebd4c4159462c96397ae9af9c667bb394d7b70 (patch) | |
tree | 04554f0e7607d906c6b09f31a995fca0dd40c5b5 /drivers/md/raid10.c | |
parent | 57b2caa394393f8870ed41bdcc38a7542593018f (diff) |
md-new-param-to_sync_page_io
Add new parameter to 'sync_page_io'.
The new parameter allows us to distinguish between metadata and data
operations. This becomes important later when we add the ability to
use separate devices for data and metadata.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
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 " |