diff options
author | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:59 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:59 -0400 |
commit | e373ab109172abc2d821bd3b5c1b400acddef5a5 (patch) | |
tree | 48ca1b8ded6ec90a47015ab7316fe8cadb9f8d05 /drivers/md/raid5.c | |
parent | 69724e28ca99990a8f0b5370bb946d7704936d67 (diff) |
md/raid0: typedef removal: raid0_conf_t -> struct r0conf
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 17725c59eb0b..8514e9aeb369 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5405,18 +5405,18 @@ static void raid5_quiesce(struct mddev *mddev, int state) | |||
5405 | 5405 | ||
5406 | static void *raid45_takeover_raid0(struct mddev *mddev, int level) | 5406 | static void *raid45_takeover_raid0(struct mddev *mddev, int level) |
5407 | { | 5407 | { |
5408 | struct raid0_private_data *raid0_priv = mddev->private; | 5408 | struct r0conf *raid0_conf = mddev->private; |
5409 | sector_t sectors; | 5409 | sector_t sectors; |
5410 | 5410 | ||
5411 | /* for raid0 takeover only one zone is supported */ | 5411 | /* for raid0 takeover only one zone is supported */ |
5412 | if (raid0_priv->nr_strip_zones > 1) { | 5412 | if (raid0_conf->nr_strip_zones > 1) { |
5413 | printk(KERN_ERR "md/raid:%s: cannot takeover raid0 with more than one zone.\n", | 5413 | printk(KERN_ERR "md/raid:%s: cannot takeover raid0 with more than one zone.\n", |
5414 | mdname(mddev)); | 5414 | mdname(mddev)); |
5415 | return ERR_PTR(-EINVAL); | 5415 | return ERR_PTR(-EINVAL); |
5416 | } | 5416 | } |
5417 | 5417 | ||
5418 | sectors = raid0_priv->strip_zone[0].zone_end; | 5418 | sectors = raid0_conf->strip_zone[0].zone_end; |
5419 | sector_div(sectors, raid0_priv->strip_zone[0].nb_dev); | 5419 | sector_div(sectors, raid0_conf->strip_zone[0].nb_dev); |
5420 | mddev->dev_sectors = sectors; | 5420 | mddev->dev_sectors = sectors; |
5421 | mddev->new_level = level; | 5421 | mddev->new_level = level; |
5422 | mddev->new_layout = ALGORITHM_PARITY_N; | 5422 | mddev->new_layout = ALGORITHM_PARITY_N; |