aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-02-06 04:39:59 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:19 -0500
commitd089c6af10c2be5988f03667d6d22fe6085fbe5e (patch)
tree815eb0596bd7c908f30c268da6b5c5eff0e0bc21 /drivers/md/raid10.c
parent29ac4aa3fc68a86279aca50f20df4d614de2e204 (diff)
md: change ITERATE_RDEV to rdev_for_each
As this is more in line with common practice in the kernel. Also swap the args around to be more like list_for_each. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index d6f12882424d..017f58113c33 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2026,7 +2026,7 @@ static int run(mddev_t *mddev)
2026 goto out_free_conf; 2026 goto out_free_conf;
2027 } 2027 }
2028 2028
2029 ITERATE_RDEV(mddev, rdev, tmp) { 2029 rdev_for_each(rdev, tmp, mddev) {
2030 disk_idx = rdev->raid_disk; 2030 disk_idx = rdev->raid_disk;
2031 if (disk_idx >= mddev->raid_disks 2031 if (disk_idx >= mddev->raid_disks
2032 || disk_idx < 0) 2032 || disk_idx < 0)