aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.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
commit73c34431c7119d0bc7d3436abfad75fe47b2c51f (patch)
treec91210130d1115354f011e55c98db9361d4416f8 /drivers/md/md.c
parentd089c6af10c2be5988f03667d6d22fe6085fbe5e (diff)
md: change ITERATE_RDEV_GENERIC to rdev_for_each_list, and remove ITERATE_RDEV_PENDING.
Finish ITERATE_ to for_each conversion. 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/md.c')
-rw-r--r--drivers/md/md.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index e02022864f08..5fc326d3970e 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3766,7 +3766,7 @@ static void autorun_devices(int part)
3766 printk(KERN_INFO "md: considering %s ...\n", 3766 printk(KERN_INFO "md: considering %s ...\n",
3767 bdevname(rdev0->bdev,b)); 3767 bdevname(rdev0->bdev,b));
3768 INIT_LIST_HEAD(&candidates); 3768 INIT_LIST_HEAD(&candidates);
3769 ITERATE_RDEV_PENDING(rdev,tmp) 3769 rdev_for_each_list(rdev, tmp, pending_raid_disks)
3770 if (super_90_load(rdev, rdev0, 0) >= 0) { 3770 if (super_90_load(rdev, rdev0, 0) >= 0) {
3771 printk(KERN_INFO "md: adding %s ...\n", 3771 printk(KERN_INFO "md: adding %s ...\n",
3772 bdevname(rdev->bdev,b)); 3772 bdevname(rdev->bdev,b));
@@ -3810,7 +3810,7 @@ static void autorun_devices(int part)
3810 } else { 3810 } else {
3811 printk(KERN_INFO "md: created %s\n", mdname(mddev)); 3811 printk(KERN_INFO "md: created %s\n", mdname(mddev));
3812 mddev->persistent = 1; 3812 mddev->persistent = 1;
3813 ITERATE_RDEV_GENERIC(candidates,rdev,tmp) { 3813 rdev_for_each_list(rdev, tmp, candidates) {
3814 list_del_init(&rdev->same_set); 3814 list_del_init(&rdev->same_set);
3815 if (bind_rdev_to_array(rdev, mddev)) 3815 if (bind_rdev_to_array(rdev, mddev))
3816 export_rdev(rdev); 3816 export_rdev(rdev);
@@ -3821,7 +3821,7 @@ static void autorun_devices(int part)
3821 /* on success, candidates will be empty, on error 3821 /* on success, candidates will be empty, on error
3822 * it won't... 3822 * it won't...
3823 */ 3823 */
3824 ITERATE_RDEV_GENERIC(candidates,rdev,tmp) 3824 rdev_for_each_list(rdev, tmp, candidates)
3825 export_rdev(rdev); 3825 export_rdev(rdev);
3826 mddev_put(mddev); 3826 mddev_put(mddev);
3827 } 3827 }
@@ -4936,7 +4936,7 @@ static void status_unused(struct seq_file *seq)
4936 4936
4937 seq_printf(seq, "unused devices: "); 4937 seq_printf(seq, "unused devices: ");
4938 4938
4939 ITERATE_RDEV_PENDING(rdev,tmp) { 4939 rdev_for_each_list(rdev, tmp, pending_raid_disks) {
4940 char b[BDEVNAME_SIZE]; 4940 char b[BDEVNAME_SIZE];
4941 i++; 4941 i++;
4942 seq_printf(seq, "%s ", 4942 seq_printf(seq, "%s ",