summaryrefslogtreecommitdiffstats
path: root/drivers/md/faulty.c
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2008-07-21 09:05:22 +0200
committerNeilBrown <neilb@suse.de>2008-07-21 09:05:22 +0200
commitf233ea5c9e0d8b95e4283bf6a3436b88f6fd3586 (patch)
tree8a36b621de46da23f3957c6e3ea4d653c2937544 /drivers/md/faulty.c
parentmd: Make super_type->rdev_size_change() take sector-based sizes. (diff)
downloadlinux-f233ea5c9e0d8b95e4283bf6a3436b88f6fd3586.tar.xz
linux-f233ea5c9e0d8b95e4283bf6a3436b88f6fd3586.zip
md: Make mddev->array_size sector-based.
This patch renames the array_size field of struct mddev_s to array_sectors and converts all instances to use units of 512 byte sectors instead of 1k blocks. Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/faulty.c')
-rw-r--r--drivers/md/faulty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c
index d107ddceefcd..268547dbfbd3 100644
--- a/drivers/md/faulty.c
+++ b/drivers/md/faulty.c
@@ -297,7 +297,7 @@ static int run(mddev_t *mddev)
rdev_for_each(rdev, tmp, mddev)
conf->rdev = rdev;
- mddev->array_size = mddev->size;
+ mddev->array_sectors = mddev->size * 2;
mddev->private = conf;
reconfig(mddev, mddev->layout, -1);