aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6aa497e4baf8..f64b33085255 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4575,10 +4575,10 @@ static int get_version(void __user * arg)
4575static int get_array_info(mddev_t * mddev, void __user * arg) 4575static int get_array_info(mddev_t * mddev, void __user * arg)
4576{ 4576{
4577 mdu_array_info_t info; 4577 mdu_array_info_t info;
4578 int nr,working,active,failed,spare; 4578 int nr,working,insync,failed,spare;
4579 mdk_rdev_t *rdev; 4579 mdk_rdev_t *rdev;
4580 4580
4581 nr=working=active=failed=spare=0; 4581 nr=working=insync=failed=spare=0;
4582 list_for_each_entry(rdev, &mddev->disks, same_set) { 4582 list_for_each_entry(rdev, &mddev->disks, same_set) {
4583 nr++; 4583 nr++;
4584 if (test_bit(Faulty, &rdev->flags)) 4584 if (test_bit(Faulty, &rdev->flags))
@@ -4586,7 +4586,7 @@ static int get_array_info(mddev_t * mddev, void __user * arg)
4586 else { 4586 else {
4587 working++; 4587 working++;
4588 if (test_bit(In_sync, &rdev->flags)) 4588 if (test_bit(In_sync, &rdev->flags))
4589 active++; 4589 insync++;
4590 else 4590 else
4591 spare++; 4591 spare++;
4592 } 4592 }
@@ -4611,7 +4611,7 @@ static int get_array_info(mddev_t * mddev, void __user * arg)
4611 info.state = (1<<MD_SB_CLEAN); 4611 info.state = (1<<MD_SB_CLEAN);
4612 if (mddev->bitmap && mddev->bitmap_offset) 4612 if (mddev->bitmap && mddev->bitmap_offset)
4613 info.state = (1<<MD_SB_BITMAP_PRESENT); 4613 info.state = (1<<MD_SB_BITMAP_PRESENT);
4614 info.active_disks = active; 4614 info.active_disks = insync;
4615 info.working_disks = working; 4615 info.working_disks = working;
4616 info.failed_disks = failed; 4616 info.failed_disks = failed;
4617 info.spare_disks = spare; 4617 info.spare_disks = spare;
@@ -4721,7 +4721,7 @@ static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info)
4721 if (!list_empty(&mddev->disks)) { 4721 if (!list_empty(&mddev->disks)) {
4722 mdk_rdev_t *rdev0 = list_entry(mddev->disks.next, 4722 mdk_rdev_t *rdev0 = list_entry(mddev->disks.next,
4723 mdk_rdev_t, same_set); 4723 mdk_rdev_t, same_set);
4724 int err = super_types[mddev->major_version] 4724 err = super_types[mddev->major_version]
4725 .load_super(rdev, rdev0, mddev->minor_version); 4725 .load_super(rdev, rdev0, mddev->minor_version);
4726 if (err < 0) { 4726 if (err < 0) {
4727 printk(KERN_WARNING 4727 printk(KERN_WARNING