diff options
author | NeilBrown <neilb@suse.de> | 2010-10-27 00:16:40 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-10-28 02:36:11 -0400 |
commit | 2b193363ef68667ad717a6723165e0dccf99470f (patch) | |
tree | bd45d5186f0edf2b546c4503d794b479d126ad1f /drivers/md/raid10.c | |
parent | 1c4588e9c19cae6209a28c9da2f16a18a610b935 (diff) |
md: change type of first arg to sync_page_io.
Currently sync_page_io takes a 'bdev'.
Every caller passes 'rdev->bdev'.
We will soon want another field out of the rdev in sync_page_io,
So just pass the rdev instead of the bdev out of it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 6709cb255200..d54122b9927e 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1557,7 +1557,7 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1557 | test_bit(In_sync, &rdev->flags)) { | 1557 | test_bit(In_sync, &rdev->flags)) { |
1558 | atomic_inc(&rdev->nr_pending); | 1558 | atomic_inc(&rdev->nr_pending); |
1559 | rcu_read_unlock(); | 1559 | rcu_read_unlock(); |
1560 | success = sync_page_io(rdev->bdev, | 1560 | success = sync_page_io(rdev, |
1561 | r10_bio->devs[sl].addr + | 1561 | r10_bio->devs[sl].addr + |
1562 | sect + rdev->data_offset, | 1562 | sect + rdev->data_offset, |
1563 | s<<9, | 1563 | s<<9, |
@@ -1596,7 +1596,7 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1596 | atomic_inc(&rdev->nr_pending); | 1596 | atomic_inc(&rdev->nr_pending); |
1597 | rcu_read_unlock(); | 1597 | rcu_read_unlock(); |
1598 | atomic_add(s, &rdev->corrected_errors); | 1598 | atomic_add(s, &rdev->corrected_errors); |
1599 | if (sync_page_io(rdev->bdev, | 1599 | if (sync_page_io(rdev, |
1600 | r10_bio->devs[sl].addr + | 1600 | r10_bio->devs[sl].addr + |
1601 | sect + rdev->data_offset, | 1601 | sect + rdev->data_offset, |
1602 | s<<9, conf->tmppage, WRITE) | 1602 | s<<9, conf->tmppage, WRITE) |
@@ -1633,7 +1633,7 @@ static void fix_read_error(conf_t *conf, mddev_t *mddev, r10bio_t *r10_bio) | |||
1633 | char b[BDEVNAME_SIZE]; | 1633 | char b[BDEVNAME_SIZE]; |
1634 | atomic_inc(&rdev->nr_pending); | 1634 | atomic_inc(&rdev->nr_pending); |
1635 | rcu_read_unlock(); | 1635 | rcu_read_unlock(); |
1636 | if (sync_page_io(rdev->bdev, | 1636 | if (sync_page_io(rdev, |
1637 | r10_bio->devs[sl].addr + | 1637 | r10_bio->devs[sl].addr + |
1638 | sect + rdev->data_offset, | 1638 | sect + rdev->data_offset, |
1639 | s<<9, conf->tmppage, | 1639 | s<<9, conf->tmppage, |