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/dm-raid.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/dm-raid.c')
-rw-r--r-- | drivers/md/dm-raid.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index a2213d5808f4..c0c30d880447 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c | |||
@@ -57,7 +57,7 @@ struct raid_set { | |||
57 | 57 | ||
58 | uint64_t print_flags; | 58 | uint64_t print_flags; |
59 | 59 | ||
60 | struct mddev_s md; | 60 | struct mddev md; |
61 | struct raid_type *raid_type; | 61 | struct raid_type *raid_type; |
62 | struct dm_target_callbacks callbacks; | 62 | struct dm_target_callbacks callbacks; |
63 | 63 | ||
@@ -611,7 +611,7 @@ static int read_disk_sb(struct md_rdev *rdev, int size) | |||
611 | return 0; | 611 | return 0; |
612 | } | 612 | } |
613 | 613 | ||
614 | static void super_sync(mddev_t *mddev, struct md_rdev *rdev) | 614 | static void super_sync(struct mddev *mddev, struct md_rdev *rdev) |
615 | { | 615 | { |
616 | struct md_rdev *r, *t; | 616 | struct md_rdev *r, *t; |
617 | uint64_t failed_devices; | 617 | uint64_t failed_devices; |
@@ -689,7 +689,7 @@ static int super_load(struct md_rdev *rdev, struct md_rdev *refdev) | |||
689 | return (events_sb > events_refsb) ? 1 : 0; | 689 | return (events_sb > events_refsb) ? 1 : 0; |
690 | } | 690 | } |
691 | 691 | ||
692 | static int super_init_validation(mddev_t *mddev, struct md_rdev *rdev) | 692 | static int super_init_validation(struct mddev *mddev, struct md_rdev *rdev) |
693 | { | 693 | { |
694 | int role; | 694 | int role; |
695 | struct raid_set *rs = container_of(mddev, struct raid_set, md); | 695 | struct raid_set *rs = container_of(mddev, struct raid_set, md); |
@@ -809,7 +809,7 @@ static int super_init_validation(mddev_t *mddev, struct md_rdev *rdev) | |||
809 | return 0; | 809 | return 0; |
810 | } | 810 | } |
811 | 811 | ||
812 | static int super_validate(mddev_t *mddev, struct md_rdev *rdev) | 812 | static int super_validate(struct mddev *mddev, struct md_rdev *rdev) |
813 | { | 813 | { |
814 | struct dm_raid_superblock *sb = page_address(rdev->sb_page); | 814 | struct dm_raid_superblock *sb = page_address(rdev->sb_page); |
815 | 815 | ||
@@ -850,7 +850,7 @@ static int analyse_superblocks(struct dm_target *ti, struct raid_set *rs) | |||
850 | { | 850 | { |
851 | int ret; | 851 | int ret; |
852 | struct md_rdev *rdev, *freshest, *tmp; | 852 | struct md_rdev *rdev, *freshest, *tmp; |
853 | mddev_t *mddev = &rs->md; | 853 | struct mddev *mddev = &rs->md; |
854 | 854 | ||
855 | freshest = NULL; | 855 | freshest = NULL; |
856 | rdev_for_each(rdev, tmp, mddev) { | 856 | rdev_for_each(rdev, tmp, mddev) { |
@@ -1004,7 +1004,7 @@ static void raid_dtr(struct dm_target *ti) | |||
1004 | static int raid_map(struct dm_target *ti, struct bio *bio, union map_info *map_context) | 1004 | static int raid_map(struct dm_target *ti, struct bio *bio, union map_info *map_context) |
1005 | { | 1005 | { |
1006 | struct raid_set *rs = ti->private; | 1006 | struct raid_set *rs = ti->private; |
1007 | mddev_t *mddev = &rs->md; | 1007 | struct mddev *mddev = &rs->md; |
1008 | 1008 | ||
1009 | mddev->pers->make_request(mddev, bio); | 1009 | mddev->pers->make_request(mddev, bio); |
1010 | 1010 | ||