aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-03-12 20:21:21 -0400
committerNeilBrown <neilb@suse.de>2012-03-12 20:21:21 -0400
commit9d4c7d8799c418816342e263479fa010b182183e (patch)
treee1450bda6809a36d5bdb666ae0ab88ef1492b580 /drivers/md
parent547414d19fd72376ff2ecc42aac8d7a051f03d26 (diff)
md/raid5: removed unused 'added_devices' variable.
commit 908f4fbd265733 removed the last user of this variable, so we should discard it completely. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 8b3eb41d3eef..3f55145ff224 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5547,16 +5547,14 @@ static int raid5_start_reshape(struct mddev *mddev)
5547 * such devices during the reshape and confusion could result. 5547 * such devices during the reshape and confusion could result.
5548 */ 5548 */
5549 if (mddev->delta_disks >= 0) { 5549 if (mddev->delta_disks >= 0) {
5550 int added_devices = 0;
5551 list_for_each_entry(rdev, &mddev->disks, same_set) 5550 list_for_each_entry(rdev, &mddev->disks, same_set)
5552 if (rdev->raid_disk < 0 && 5551 if (rdev->raid_disk < 0 &&
5553 !test_bit(Faulty, &rdev->flags)) { 5552 !test_bit(Faulty, &rdev->flags)) {
5554 if (raid5_add_disk(mddev, rdev) == 0) { 5553 if (raid5_add_disk(mddev, rdev) == 0) {
5555 if (rdev->raid_disk 5554 if (rdev->raid_disk
5556 >= conf->previous_raid_disks) { 5555 >= conf->previous_raid_disks)
5557 set_bit(In_sync, &rdev->flags); 5556 set_bit(In_sync, &rdev->flags);
5558 added_devices++; 5557 else
5559 } else
5560 rdev->recovery_offset = 0; 5558 rdev->recovery_offset = 0;
5561 5559
5562 if (sysfs_link_rdev(mddev, rdev)) 5560 if (sysfs_link_rdev(mddev, rdev))
@@ -5566,7 +5564,6 @@ static int raid5_start_reshape(struct mddev *mddev)
5566 && !test_bit(Faulty, &rdev->flags)) { 5564 && !test_bit(Faulty, &rdev->flags)) {
5567 /* This is a spare that was manually added */ 5565 /* This is a spare that was manually added */
5568 set_bit(In_sync, &rdev->flags); 5566 set_bit(In_sync, &rdev->flags);
5569 added_devices++;
5570 } 5567 }
5571 5568
5572 /* When a reshape changes the number of devices, 5569 /* When a reshape changes the number of devices,