diff options
author | NeilBrown <neilb@suse.de> | 2008-02-06 10:39:59 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 19:41:19 +0100 |
commit | d089c6af10c2be5988f03667d6d22fe6085fbe5e (patch) | |
tree | 815eb0596bd7c908f30c268da6b5c5eff0e0bc21 /drivers/md/multipath.c | |
parent | md: change INTERATE_MDDEV to for_each_mddev (diff) | |
download | linux-d089c6af10c2be5988f03667d6d22fe6085fbe5e.tar.xz linux-d089c6af10c2be5988f03667d6d22fe6085fbe5e.zip |
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/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index eb631ebed686..3f299d835a2b 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c @@ -436,7 +436,7 @@ static int multipath_run (mddev_t *mddev) } conf->working_disks = 0; - ITERATE_RDEV(mddev,rdev,tmp) { + rdev_for_each(rdev, tmp, mddev) { disk_idx = rdev->raid_disk; if (disk_idx < 0 || disk_idx >= mddev->raid_disks) |