diff options
author | NeilBrown <neilb@suse.de> | 2011-10-11 01:47:53 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-11 01:47:53 -0400 |
commit | fd01b88c75a718020ff77e7f560d33835e9b58de (patch) | |
tree | c455d5adefd58f3263dcf265bb8ba2024523b106 /drivers/md/raid5.c | |
parent | 3cb03002000f133f9f97269edefd73611eafc873 (diff) |
md: remove typedefs: mddev_t -> struct mddev
Having mddev_t and 'struct mddev_s' is ugly and not preferred
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index d0e2a345e4d7..17725c59eb0b 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -1719,7 +1719,7 @@ static void raid5_build_block(struct stripe_head *sh, int i, int previous) | |||
1719 | dev->sector = compute_blocknr(sh, i, previous); | 1719 | dev->sector = compute_blocknr(sh, i, previous); |
1720 | } | 1720 | } |
1721 | 1721 | ||
1722 | static void error(mddev_t *mddev, struct md_rdev *rdev) | 1722 | static void error(struct mddev *mddev, struct md_rdev *rdev) |
1723 | { | 1723 | { |
1724 | char b[BDEVNAME_SIZE]; | 1724 | char b[BDEVNAME_SIZE]; |
1725 | raid5_conf_t *conf = mddev->private; | 1725 | raid5_conf_t *conf = mddev->private; |
@@ -3403,7 +3403,7 @@ static void activate_bit_delay(raid5_conf_t *conf) | |||
3403 | } | 3403 | } |
3404 | } | 3404 | } |
3405 | 3405 | ||
3406 | int md_raid5_congested(mddev_t *mddev, int bits) | 3406 | int md_raid5_congested(struct mddev *mddev, int bits) |
3407 | { | 3407 | { |
3408 | raid5_conf_t *conf = mddev->private; | 3408 | raid5_conf_t *conf = mddev->private; |
3409 | 3409 | ||
@@ -3424,7 +3424,7 @@ EXPORT_SYMBOL_GPL(md_raid5_congested); | |||
3424 | 3424 | ||
3425 | static int raid5_congested(void *data, int bits) | 3425 | static int raid5_congested(void *data, int bits) |
3426 | { | 3426 | { |
3427 | mddev_t *mddev = data; | 3427 | struct mddev *mddev = data; |
3428 | 3428 | ||
3429 | return mddev_congested(mddev, bits) || | 3429 | return mddev_congested(mddev, bits) || |
3430 | md_raid5_congested(mddev, bits); | 3430 | md_raid5_congested(mddev, bits); |
@@ -3437,7 +3437,7 @@ static int raid5_mergeable_bvec(struct request_queue *q, | |||
3437 | struct bvec_merge_data *bvm, | 3437 | struct bvec_merge_data *bvm, |
3438 | struct bio_vec *biovec) | 3438 | struct bio_vec *biovec) |
3439 | { | 3439 | { |
3440 | mddev_t *mddev = q->queuedata; | 3440 | struct mddev *mddev = q->queuedata; |
3441 | sector_t sector = bvm->bi_sector + get_start_sect(bvm->bi_bdev); | 3441 | sector_t sector = bvm->bi_sector + get_start_sect(bvm->bi_bdev); |
3442 | int max; | 3442 | int max; |
3443 | unsigned int chunk_sectors = mddev->chunk_sectors; | 3443 | unsigned int chunk_sectors = mddev->chunk_sectors; |
@@ -3457,7 +3457,7 @@ static int raid5_mergeable_bvec(struct request_queue *q, | |||
3457 | } | 3457 | } |
3458 | 3458 | ||
3459 | 3459 | ||
3460 | static int in_chunk_boundary(mddev_t *mddev, struct bio *bio) | 3460 | static int in_chunk_boundary(struct mddev *mddev, struct bio *bio) |
3461 | { | 3461 | { |
3462 | sector_t sector = bio->bi_sector + get_start_sect(bio->bi_bdev); | 3462 | sector_t sector = bio->bi_sector + get_start_sect(bio->bi_bdev); |
3463 | unsigned int chunk_sectors = mddev->chunk_sectors; | 3463 | unsigned int chunk_sectors = mddev->chunk_sectors; |
@@ -3520,7 +3520,7 @@ static struct bio *remove_bio_from_retry(raid5_conf_t *conf) | |||
3520 | static void raid5_align_endio(struct bio *bi, int error) | 3520 | static void raid5_align_endio(struct bio *bi, int error) |
3521 | { | 3521 | { |
3522 | struct bio* raid_bi = bi->bi_private; | 3522 | struct bio* raid_bi = bi->bi_private; |
3523 | mddev_t *mddev; | 3523 | struct mddev *mddev; |
3524 | raid5_conf_t *conf; | 3524 | raid5_conf_t *conf; |
3525 | int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); | 3525 | int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); |
3526 | struct md_rdev *rdev; | 3526 | struct md_rdev *rdev; |
@@ -3567,7 +3567,7 @@ static int bio_fits_rdev(struct bio *bi) | |||
3567 | } | 3567 | } |
3568 | 3568 | ||
3569 | 3569 | ||
3570 | static int chunk_aligned_read(mddev_t *mddev, struct bio * raid_bio) | 3570 | static int chunk_aligned_read(struct mddev *mddev, struct bio * raid_bio) |
3571 | { | 3571 | { |
3572 | raid5_conf_t *conf = mddev->private; | 3572 | raid5_conf_t *conf = mddev->private; |
3573 | int dd_idx; | 3573 | int dd_idx; |
@@ -3688,7 +3688,7 @@ static struct stripe_head *__get_priority_stripe(raid5_conf_t *conf) | |||
3688 | return sh; | 3688 | return sh; |
3689 | } | 3689 | } |
3690 | 3690 | ||
3691 | static int make_request(mddev_t *mddev, struct bio * bi) | 3691 | static int make_request(struct mddev *mddev, struct bio * bi) |
3692 | { | 3692 | { |
3693 | raid5_conf_t *conf = mddev->private; | 3693 | raid5_conf_t *conf = mddev->private; |
3694 | int dd_idx; | 3694 | int dd_idx; |
@@ -3848,9 +3848,9 @@ static int make_request(mddev_t *mddev, struct bio * bi) | |||
3848 | return 0; | 3848 | return 0; |
3849 | } | 3849 | } |
3850 | 3850 | ||
3851 | static sector_t raid5_size(mddev_t *mddev, sector_t sectors, int raid_disks); | 3851 | static sector_t raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks); |
3852 | 3852 | ||
3853 | static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped) | 3853 | static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr, int *skipped) |
3854 | { | 3854 | { |
3855 | /* reshaping is quite different to recovery/resync so it is | 3855 | /* reshaping is quite different to recovery/resync so it is |
3856 | * handled quite separately ... here. | 3856 | * handled quite separately ... here. |
@@ -4068,7 +4068,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped | |||
4068 | } | 4068 | } |
4069 | 4069 | ||
4070 | /* FIXME go_faster isn't used */ | 4070 | /* FIXME go_faster isn't used */ |
4071 | static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) | 4071 | static inline sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped, int go_faster) |
4072 | { | 4072 | { |
4073 | raid5_conf_t *conf = mddev->private; | 4073 | raid5_conf_t *conf = mddev->private; |
4074 | struct stripe_head *sh; | 4074 | struct stripe_head *sh; |
@@ -4227,7 +4227,7 @@ static int retry_aligned_read(raid5_conf_t *conf, struct bio *raid_bio) | |||
4227 | * During the scan, completed stripes are saved for us by the interrupt | 4227 | * During the scan, completed stripes are saved for us by the interrupt |
4228 | * handler, so that they will not have to wait for our next wakeup. | 4228 | * handler, so that they will not have to wait for our next wakeup. |
4229 | */ | 4229 | */ |
4230 | static void raid5d(mddev_t *mddev) | 4230 | static void raid5d(struct mddev *mddev) |
4231 | { | 4231 | { |
4232 | struct stripe_head *sh; | 4232 | struct stripe_head *sh; |
4233 | raid5_conf_t *conf = mddev->private; | 4233 | raid5_conf_t *conf = mddev->private; |
@@ -4294,7 +4294,7 @@ static void raid5d(mddev_t *mddev) | |||
4294 | } | 4294 | } |
4295 | 4295 | ||
4296 | static ssize_t | 4296 | static ssize_t |
4297 | raid5_show_stripe_cache_size(mddev_t *mddev, char *page) | 4297 | raid5_show_stripe_cache_size(struct mddev *mddev, char *page) |
4298 | { | 4298 | { |
4299 | raid5_conf_t *conf = mddev->private; | 4299 | raid5_conf_t *conf = mddev->private; |
4300 | if (conf) | 4300 | if (conf) |
@@ -4304,7 +4304,7 @@ raid5_show_stripe_cache_size(mddev_t *mddev, char *page) | |||
4304 | } | 4304 | } |
4305 | 4305 | ||
4306 | int | 4306 | int |
4307 | raid5_set_cache_size(mddev_t *mddev, int size) | 4307 | raid5_set_cache_size(struct mddev *mddev, int size) |
4308 | { | 4308 | { |
4309 | raid5_conf_t *conf = mddev->private; | 4309 | raid5_conf_t *conf = mddev->private; |
4310 | int err; | 4310 | int err; |
@@ -4330,7 +4330,7 @@ raid5_set_cache_size(mddev_t *mddev, int size) | |||
4330 | EXPORT_SYMBOL(raid5_set_cache_size); | 4330 | EXPORT_SYMBOL(raid5_set_cache_size); |
4331 | 4331 | ||
4332 | static ssize_t | 4332 | static ssize_t |
4333 | raid5_store_stripe_cache_size(mddev_t *mddev, const char *page, size_t len) | 4333 | raid5_store_stripe_cache_size(struct mddev *mddev, const char *page, size_t len) |
4334 | { | 4334 | { |
4335 | raid5_conf_t *conf = mddev->private; | 4335 | raid5_conf_t *conf = mddev->private; |
4336 | unsigned long new; | 4336 | unsigned long new; |
@@ -4355,7 +4355,7 @@ raid5_stripecache_size = __ATTR(stripe_cache_size, S_IRUGO | S_IWUSR, | |||
4355 | raid5_store_stripe_cache_size); | 4355 | raid5_store_stripe_cache_size); |
4356 | 4356 | ||
4357 | static ssize_t | 4357 | static ssize_t |
4358 | raid5_show_preread_threshold(mddev_t *mddev, char *page) | 4358 | raid5_show_preread_threshold(struct mddev *mddev, char *page) |
4359 | { | 4359 | { |
4360 | raid5_conf_t *conf = mddev->private; | 4360 | raid5_conf_t *conf = mddev->private; |
4361 | if (conf) | 4361 | if (conf) |
@@ -4365,7 +4365,7 @@ raid5_show_preread_threshold(mddev_t *mddev, char *page) | |||
4365 | } | 4365 | } |
4366 | 4366 | ||
4367 | static ssize_t | 4367 | static ssize_t |
4368 | raid5_store_preread_threshold(mddev_t *mddev, const char *page, size_t len) | 4368 | raid5_store_preread_threshold(struct mddev *mddev, const char *page, size_t len) |
4369 | { | 4369 | { |
4370 | raid5_conf_t *conf = mddev->private; | 4370 | raid5_conf_t *conf = mddev->private; |
4371 | unsigned long new; | 4371 | unsigned long new; |
@@ -4389,7 +4389,7 @@ raid5_preread_bypass_threshold = __ATTR(preread_bypass_threshold, | |||
4389 | raid5_store_preread_threshold); | 4389 | raid5_store_preread_threshold); |
4390 | 4390 | ||
4391 | static ssize_t | 4391 | static ssize_t |
4392 | stripe_cache_active_show(mddev_t *mddev, char *page) | 4392 | stripe_cache_active_show(struct mddev *mddev, char *page) |
4393 | { | 4393 | { |
4394 | raid5_conf_t *conf = mddev->private; | 4394 | raid5_conf_t *conf = mddev->private; |
4395 | if (conf) | 4395 | if (conf) |
@@ -4413,7 +4413,7 @@ static struct attribute_group raid5_attrs_group = { | |||
4413 | }; | 4413 | }; |
4414 | 4414 | ||
4415 | static sector_t | 4415 | static sector_t |
4416 | raid5_size(mddev_t *mddev, sector_t sectors, int raid_disks) | 4416 | raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) |
4417 | { | 4417 | { |
4418 | raid5_conf_t *conf = mddev->private; | 4418 | raid5_conf_t *conf = mddev->private; |
4419 | 4419 | ||
@@ -4540,7 +4540,7 @@ static int raid5_alloc_percpu(raid5_conf_t *conf) | |||
4540 | return err; | 4540 | return err; |
4541 | } | 4541 | } |
4542 | 4542 | ||
4543 | static raid5_conf_t *setup_conf(mddev_t *mddev) | 4543 | static raid5_conf_t *setup_conf(struct mddev *mddev) |
4544 | { | 4544 | { |
4545 | raid5_conf_t *conf; | 4545 | raid5_conf_t *conf; |
4546 | int raid_disk, memory, max_disks; | 4546 | int raid_disk, memory, max_disks; |
@@ -4705,7 +4705,7 @@ static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded | |||
4705 | return 0; | 4705 | return 0; |
4706 | } | 4706 | } |
4707 | 4707 | ||
4708 | static int run(mddev_t *mddev) | 4708 | static int run(struct mddev *mddev) |
4709 | { | 4709 | { |
4710 | raid5_conf_t *conf; | 4710 | raid5_conf_t *conf; |
4711 | int working_disks = 0; | 4711 | int working_disks = 0; |
@@ -4942,7 +4942,7 @@ abort: | |||
4942 | return -EIO; | 4942 | return -EIO; |
4943 | } | 4943 | } |
4944 | 4944 | ||
4945 | static int stop(mddev_t *mddev) | 4945 | static int stop(struct mddev *mddev) |
4946 | { | 4946 | { |
4947 | raid5_conf_t *conf = mddev->private; | 4947 | raid5_conf_t *conf = mddev->private; |
4948 | 4948 | ||
@@ -4955,7 +4955,7 @@ static int stop(mddev_t *mddev) | |||
4955 | return 0; | 4955 | return 0; |
4956 | } | 4956 | } |
4957 | 4957 | ||
4958 | static void status(struct seq_file *seq, mddev_t *mddev) | 4958 | static void status(struct seq_file *seq, struct mddev *mddev) |
4959 | { | 4959 | { |
4960 | raid5_conf_t *conf = mddev->private; | 4960 | raid5_conf_t *conf = mddev->private; |
4961 | int i; | 4961 | int i; |
@@ -4994,7 +4994,7 @@ static void print_raid5_conf (raid5_conf_t *conf) | |||
4994 | } | 4994 | } |
4995 | } | 4995 | } |
4996 | 4996 | ||
4997 | static int raid5_spare_active(mddev_t *mddev) | 4997 | static int raid5_spare_active(struct mddev *mddev) |
4998 | { | 4998 | { |
4999 | int i; | 4999 | int i; |
5000 | raid5_conf_t *conf = mddev->private; | 5000 | raid5_conf_t *conf = mddev->private; |
@@ -5019,7 +5019,7 @@ static int raid5_spare_active(mddev_t *mddev) | |||
5019 | return count; | 5019 | return count; |
5020 | } | 5020 | } |
5021 | 5021 | ||
5022 | static int raid5_remove_disk(mddev_t *mddev, int number) | 5022 | static int raid5_remove_disk(struct mddev *mddev, int number) |
5023 | { | 5023 | { |
5024 | raid5_conf_t *conf = mddev->private; | 5024 | raid5_conf_t *conf = mddev->private; |
5025 | int err = 0; | 5025 | int err = 0; |
@@ -5062,7 +5062,7 @@ abort: | |||
5062 | return err; | 5062 | return err; |
5063 | } | 5063 | } |
5064 | 5064 | ||
5065 | static int raid5_add_disk(mddev_t *mddev, struct md_rdev *rdev) | 5065 | static int raid5_add_disk(struct mddev *mddev, struct md_rdev *rdev) |
5066 | { | 5066 | { |
5067 | raid5_conf_t *conf = mddev->private; | 5067 | raid5_conf_t *conf = mddev->private; |
5068 | int err = -EEXIST; | 5068 | int err = -EEXIST; |
@@ -5105,7 +5105,7 @@ static int raid5_add_disk(mddev_t *mddev, struct md_rdev *rdev) | |||
5105 | return err; | 5105 | return err; |
5106 | } | 5106 | } |
5107 | 5107 | ||
5108 | static int raid5_resize(mddev_t *mddev, sector_t sectors) | 5108 | static int raid5_resize(struct mddev *mddev, sector_t sectors) |
5109 | { | 5109 | { |
5110 | /* no resync is happening, and there is enough space | 5110 | /* no resync is happening, and there is enough space |
5111 | * on all devices, so we can resize. | 5111 | * on all devices, so we can resize. |
@@ -5132,7 +5132,7 @@ static int raid5_resize(mddev_t *mddev, sector_t sectors) | |||
5132 | return 0; | 5132 | return 0; |
5133 | } | 5133 | } |
5134 | 5134 | ||
5135 | static int check_stripe_cache(mddev_t *mddev) | 5135 | static int check_stripe_cache(struct mddev *mddev) |
5136 | { | 5136 | { |
5137 | /* Can only proceed if there are plenty of stripe_heads. | 5137 | /* Can only proceed if there are plenty of stripe_heads. |
5138 | * We need a minimum of one full stripe,, and for sensible progress | 5138 | * We need a minimum of one full stripe,, and for sensible progress |
@@ -5156,7 +5156,7 @@ static int check_stripe_cache(mddev_t *mddev) | |||
5156 | return 1; | 5156 | return 1; |
5157 | } | 5157 | } |
5158 | 5158 | ||
5159 | static int check_reshape(mddev_t *mddev) | 5159 | static int check_reshape(struct mddev *mddev) |
5160 | { | 5160 | { |
5161 | raid5_conf_t *conf = mddev->private; | 5161 | raid5_conf_t *conf = mddev->private; |
5162 | 5162 | ||
@@ -5188,7 +5188,7 @@ static int check_reshape(mddev_t *mddev) | |||
5188 | return resize_stripes(conf, conf->raid_disks + mddev->delta_disks); | 5188 | return resize_stripes(conf, conf->raid_disks + mddev->delta_disks); |
5189 | } | 5189 | } |
5190 | 5190 | ||
5191 | static int raid5_start_reshape(mddev_t *mddev) | 5191 | static int raid5_start_reshape(struct mddev *mddev) |
5192 | { | 5192 | { |
5193 | raid5_conf_t *conf = mddev->private; | 5193 | raid5_conf_t *conf = mddev->private; |
5194 | struct md_rdev *rdev; | 5194 | struct md_rdev *rdev; |
@@ -5332,7 +5332,7 @@ static void end_reshape(raid5_conf_t *conf) | |||
5332 | /* This is called from the raid5d thread with mddev_lock held. | 5332 | /* This is called from the raid5d thread with mddev_lock held. |
5333 | * It makes config changes to the device. | 5333 | * It makes config changes to the device. |
5334 | */ | 5334 | */ |
5335 | static void raid5_finish_reshape(mddev_t *mddev) | 5335 | static void raid5_finish_reshape(struct mddev *mddev) |
5336 | { | 5336 | { |
5337 | raid5_conf_t *conf = mddev->private; | 5337 | raid5_conf_t *conf = mddev->private; |
5338 | 5338 | ||
@@ -5367,7 +5367,7 @@ static void raid5_finish_reshape(mddev_t *mddev) | |||
5367 | } | 5367 | } |
5368 | } | 5368 | } |
5369 | 5369 | ||
5370 | static void raid5_quiesce(mddev_t *mddev, int state) | 5370 | static void raid5_quiesce(struct mddev *mddev, int state) |
5371 | { | 5371 | { |
5372 | raid5_conf_t *conf = mddev->private; | 5372 | raid5_conf_t *conf = mddev->private; |
5373 | 5373 | ||
@@ -5403,7 +5403,7 @@ static void raid5_quiesce(mddev_t *mddev, int state) | |||
5403 | } | 5403 | } |
5404 | 5404 | ||
5405 | 5405 | ||
5406 | static void *raid45_takeover_raid0(mddev_t *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 raid0_private_data *raid0_priv = mddev->private; |
5409 | sector_t sectors; | 5409 | sector_t sectors; |
@@ -5430,7 +5430,7 @@ static void *raid45_takeover_raid0(mddev_t *mddev, int level) | |||
5430 | } | 5430 | } |
5431 | 5431 | ||
5432 | 5432 | ||
5433 | static void *raid5_takeover_raid1(mddev_t *mddev) | 5433 | static void *raid5_takeover_raid1(struct mddev *mddev) |
5434 | { | 5434 | { |
5435 | int chunksect; | 5435 | int chunksect; |
5436 | 5436 | ||
@@ -5457,7 +5457,7 @@ static void *raid5_takeover_raid1(mddev_t *mddev) | |||
5457 | return setup_conf(mddev); | 5457 | return setup_conf(mddev); |
5458 | } | 5458 | } |
5459 | 5459 | ||
5460 | static void *raid5_takeover_raid6(mddev_t *mddev) | 5460 | static void *raid5_takeover_raid6(struct mddev *mddev) |
5461 | { | 5461 | { |
5462 | int new_layout; | 5462 | int new_layout; |
5463 | 5463 | ||
@@ -5491,7 +5491,7 @@ static void *raid5_takeover_raid6(mddev_t *mddev) | |||
5491 | } | 5491 | } |
5492 | 5492 | ||
5493 | 5493 | ||
5494 | static int raid5_check_reshape(mddev_t *mddev) | 5494 | static int raid5_check_reshape(struct mddev *mddev) |
5495 | { | 5495 | { |
5496 | /* For a 2-drive array, the layout and chunk size can be changed | 5496 | /* For a 2-drive array, the layout and chunk size can be changed |
5497 | * immediately as not restriping is needed. | 5497 | * immediately as not restriping is needed. |
@@ -5531,7 +5531,7 @@ static int raid5_check_reshape(mddev_t *mddev) | |||
5531 | return check_reshape(mddev); | 5531 | return check_reshape(mddev); |
5532 | } | 5532 | } |
5533 | 5533 | ||
5534 | static int raid6_check_reshape(mddev_t *mddev) | 5534 | static int raid6_check_reshape(struct mddev *mddev) |
5535 | { | 5535 | { |
5536 | int new_chunk = mddev->new_chunk_sectors; | 5536 | int new_chunk = mddev->new_chunk_sectors; |
5537 | 5537 | ||
@@ -5551,7 +5551,7 @@ static int raid6_check_reshape(mddev_t *mddev) | |||
5551 | return check_reshape(mddev); | 5551 | return check_reshape(mddev); |
5552 | } | 5552 | } |
5553 | 5553 | ||
5554 | static void *raid5_takeover(mddev_t *mddev) | 5554 | static void *raid5_takeover(struct mddev *mddev) |
5555 | { | 5555 | { |
5556 | /* raid5 can take over: | 5556 | /* raid5 can take over: |
5557 | * raid0 - if there is only one strip zone - make it a raid4 layout | 5557 | * raid0 - if there is only one strip zone - make it a raid4 layout |
@@ -5574,7 +5574,7 @@ static void *raid5_takeover(mddev_t *mddev) | |||
5574 | return ERR_PTR(-EINVAL); | 5574 | return ERR_PTR(-EINVAL); |
5575 | } | 5575 | } |
5576 | 5576 | ||
5577 | static void *raid4_takeover(mddev_t *mddev) | 5577 | static void *raid4_takeover(struct mddev *mddev) |
5578 | { | 5578 | { |
5579 | /* raid4 can take over: | 5579 | /* raid4 can take over: |
5580 | * raid0 - if there is only one strip zone | 5580 | * raid0 - if there is only one strip zone |
@@ -5593,7 +5593,7 @@ static void *raid4_takeover(mddev_t *mddev) | |||
5593 | 5593 | ||
5594 | static struct mdk_personality raid5_personality; | 5594 | static struct mdk_personality raid5_personality; |
5595 | 5595 | ||
5596 | static void *raid6_takeover(mddev_t *mddev) | 5596 | static void *raid6_takeover(struct mddev *mddev) |
5597 | { | 5597 | { |
5598 | /* Currently can only take over a raid5. We map the | 5598 | /* Currently can only take over a raid5. We map the |
5599 | * personality to an equivalent raid6 personality | 5599 | * personality to an equivalent raid6 personality |