diff options
author | NeilBrown <neilb@suse.de> | 2010-03-28 20:18:15 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:53 -0400 |
commit | b821eaa572fd737faaf6928ba046e571526c36c6 (patch) | |
tree | 0db462a3c7da3dbf42d28e2483a27d78839b4589 /drivers/md/raid1.c | |
parent | 49ce6cea85fb8d25ee59486c919406e9cecf1762 (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/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index e277013ac808..eebce166dafe 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -2184,7 +2184,6 @@ static int raid1_resize(mddev_t *mddev, sector_t sectors) | |||
2184 | if (mddev->array_sectors > raid1_size(mddev, sectors, 0)) | 2184 | if (mddev->array_sectors > raid1_size(mddev, sectors, 0)) |
2185 | return -EINVAL; | 2185 | return -EINVAL; |
2186 | set_capacity(mddev->gendisk, mddev->array_sectors); | 2186 | set_capacity(mddev->gendisk, mddev->array_sectors); |
2187 | mddev->changed = 1; | ||
2188 | revalidate_disk(mddev->gendisk); | 2187 | revalidate_disk(mddev->gendisk); |
2189 | if (sectors > mddev->dev_sectors && | 2188 | if (sectors > mddev->dev_sectors && |
2190 | mddev->recovery_cp == MaxSector) { | 2189 | mddev->recovery_cp == MaxSector) { |