md: change ITERATE_RDEV to rdev_for_each
[linux-2.6.git] / drivers / md / raid1.c
index ae7c152..5c7fef0 100644 (file)
@@ -1887,7 +1887,7 @@ static int run(mddev_t *mddev)
        if (!conf->r1bio_pool)
                goto out_no_mem;
 
-       ITERATE_RDEV(mddev, rdev, tmp) {
+       rdev_for_each(rdev, tmp, mddev) {
                disk_idx = rdev->raid_disk;
                if (disk_idx >= mddev->raid_disks
                    || disk_idx < 0)