aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-28 20:18:15 -0400
committerNeilBrown <neilb@suse.de>2010-05-18 01:27:53 -0400
commitb821eaa572fd737faaf6928ba046e571526c36c6 (patch)
tree0db462a3c7da3dbf42d28e2483a27d78839b4589 /drivers/md/raid5.c
parent49ce6cea85fb8d25ee59486c919406e9cecf1762 (diff)
md: remove ->changed and related code.
We set ->changed to 1 and call check_disk_change at the end of md_open so that bd_invalidated would be set and thus partition rescan would happen appropriately. Now that we call revalidate_disk directly, which sets bd_invalidates, that indirection is no longer needed and can be removed. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index c6ae7c194915..231afda1697f 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5335,7 +5335,6 @@ static int raid5_resize(mddev_t *mddev, sector_t sectors)
5335 raid5_size(mddev, sectors, mddev->raid_disks)) 5335 raid5_size(mddev, sectors, mddev->raid_disks))
5336 return -EINVAL; 5336 return -EINVAL;
5337 set_capacity(mddev->gendisk, mddev->array_sectors); 5337 set_capacity(mddev->gendisk, mddev->array_sectors);
5338 mddev->changed = 1;
5339 revalidate_disk(mddev->gendisk); 5338 revalidate_disk(mddev->gendisk);
5340 if (sectors > mddev->dev_sectors && mddev->recovery_cp == MaxSector) { 5339 if (sectors > mddev->dev_sectors && mddev->recovery_cp == MaxSector) {
5341 mddev->recovery_cp = mddev->dev_sectors; 5340 mddev->recovery_cp = mddev->dev_sectors;
@@ -5549,7 +5548,6 @@ static void raid5_finish_reshape(mddev_t *mddev)
5549 if (mddev->delta_disks > 0) { 5548 if (mddev->delta_disks > 0) {
5550 md_set_array_sectors(mddev, raid5_size(mddev, 0, 0)); 5549 md_set_array_sectors(mddev, raid5_size(mddev, 0, 0));
5551 set_capacity(mddev->gendisk, mddev->array_sectors); 5550 set_capacity(mddev->gendisk, mddev->array_sectors);
5552 mddev->changed = 1;
5553 revalidate_disk(mddev->gendisk); 5551 revalidate_disk(mddev->gendisk);
5554 } else { 5552 } else {
5555 int d; 5553 int d;