diff options
author | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:54 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:54 -0400 |
commit | e849b9381f726c0fa20c4e7b7139b936df777084 (patch) | |
tree | 8f1a8b8cf0afb7621c9025fb6ead7d8e9f319b95 /drivers/md/linear.c | |
parent | 8f1ae43dd27eff2d71708be46fad339dbdd70bd1 (diff) |
md/linear: typedef removal: linear_conf_t -> struct linear_conf
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r-- | drivers/md/linear.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index e9159ebcaaef..cbac48cfe72b 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c | |||
@@ -29,7 +29,7 @@ | |||
29 | static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) | 29 | static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector) |
30 | { | 30 | { |
31 | int lo, mid, hi; | 31 | int lo, mid, hi; |
32 | linear_conf_t *conf; | 32 | struct linear_conf *conf; |
33 | 33 | ||
34 | lo = 0; | 34 | lo = 0; |
35 | hi = mddev->raid_disks - 1; | 35 | hi = mddev->raid_disks - 1; |
@@ -90,7 +90,7 @@ static int linear_mergeable_bvec(struct request_queue *q, | |||
90 | static int linear_congested(void *data, int bits) | 90 | static int linear_congested(void *data, int bits) |
91 | { | 91 | { |
92 | struct mddev *mddev = data; | 92 | struct mddev *mddev = data; |
93 | linear_conf_t *conf; | 93 | struct linear_conf *conf; |
94 | int i, ret = 0; | 94 | int i, ret = 0; |
95 | 95 | ||
96 | if (mddev_congested(mddev, bits)) | 96 | if (mddev_congested(mddev, bits)) |
@@ -110,7 +110,7 @@ static int linear_congested(void *data, int bits) | |||
110 | 110 | ||
111 | static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) | 111 | static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) |
112 | { | 112 | { |
113 | linear_conf_t *conf; | 113 | struct linear_conf *conf; |
114 | sector_t array_sectors; | 114 | sector_t array_sectors; |
115 | 115 | ||
116 | rcu_read_lock(); | 116 | rcu_read_lock(); |
@@ -123,9 +123,9 @@ static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disk | |||
123 | return array_sectors; | 123 | return array_sectors; |
124 | } | 124 | } |
125 | 125 | ||
126 | static linear_conf_t *linear_conf(struct mddev *mddev, int raid_disks) | 126 | static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) |
127 | { | 127 | { |
128 | linear_conf_t *conf; | 128 | struct linear_conf *conf; |
129 | struct md_rdev *rdev; | 129 | struct md_rdev *rdev; |
130 | int i, cnt; | 130 | int i, cnt; |
131 | 131 | ||
@@ -196,7 +196,7 @@ out: | |||
196 | 196 | ||
197 | static int linear_run (struct mddev *mddev) | 197 | static int linear_run (struct mddev *mddev) |
198 | { | 198 | { |
199 | linear_conf_t *conf; | 199 | struct linear_conf *conf; |
200 | 200 | ||
201 | if (md_check_no_bitmap(mddev)) | 201 | if (md_check_no_bitmap(mddev)) |
202 | return -EINVAL; | 202 | return -EINVAL; |
@@ -223,7 +223,7 @@ static int linear_add(struct mddev *mddev, struct md_rdev *rdev) | |||
223 | * The current one is never freed until the array is stopped. | 223 | * The current one is never freed until the array is stopped. |
224 | * This avoids races. | 224 | * This avoids races. |
225 | */ | 225 | */ |
226 | linear_conf_t *newconf, *oldconf; | 226 | struct linear_conf *newconf, *oldconf; |
227 | 227 | ||
228 | if (rdev->saved_raid_disk != mddev->raid_disks) | 228 | if (rdev->saved_raid_disk != mddev->raid_disks) |
229 | return -EINVAL; | 229 | return -EINVAL; |
@@ -247,7 +247,7 @@ static int linear_add(struct mddev *mddev, struct md_rdev *rdev) | |||
247 | 247 | ||
248 | static int linear_stop (struct mddev *mddev) | 248 | static int linear_stop (struct mddev *mddev) |
249 | { | 249 | { |
250 | linear_conf_t *conf = mddev->private; | 250 | struct linear_conf *conf = mddev->private; |
251 | 251 | ||
252 | /* | 252 | /* |
253 | * We do not require rcu protection here since | 253 | * We do not require rcu protection here since |