summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-10-11 16:48:49 +1100
committerNeilBrown <neilb@suse.de>2011-10-11 16:48:49 +1100
commita71207713a36e73fb1bc264453a9c594b95d3af1 (patch)
tree5b7fbeae4af391fd52f870af0128e49b1e671975 /drivers/md
parent0f6d02d580ca77ee4be085c29c5fe5b879df24d9 (diff)
downloadblackbird-op-linux-a71207713a36e73fb1bc264453a9c594b95d3af1.tar.gz
blackbird-op-linux-a71207713a36e73fb1bc264453a9c594b95d3af1.zip
md/linear: remove typedefs: dev_info_t -> struct dev_info
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/linear.c10
-rw-r--r--drivers/md/linear.h4
2 files changed, 6 insertions, 8 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c
index 2e176e020ab5..e9159ebcaaef 100644
--- a/drivers/md/linear.c
+++ b/drivers/md/linear.c
@@ -26,7 +26,7 @@
/*
* find which device holds a particular offset
*/
-static inline dev_info_t *which_dev(struct mddev *mddev, sector_t sector)
+static inline struct dev_info *which_dev(struct mddev *mddev, sector_t sector)
{
int lo, mid, hi;
linear_conf_t *conf;
@@ -64,7 +64,7 @@ static int linear_mergeable_bvec(struct request_queue *q,
struct bio_vec *biovec)
{
struct mddev *mddev = q->queuedata;
- dev_info_t *dev0;
+ struct dev_info *dev0;
unsigned long maxsectors, bio_sectors = bvm->bi_size >> 9;
sector_t sector = bvm->bi_sector + get_start_sect(bvm->bi_bdev);
@@ -129,7 +129,7 @@ static linear_conf_t *linear_conf(struct mddev *mddev, int raid_disks)
struct md_rdev *rdev;
int i, cnt;
- conf = kzalloc (sizeof (*conf) + raid_disks*sizeof(dev_info_t),
+ conf = kzalloc (sizeof (*conf) + raid_disks*sizeof(struct dev_info),
GFP_KERNEL);
if (!conf)
return NULL;
@@ -139,7 +139,7 @@ static linear_conf_t *linear_conf(struct mddev *mddev, int raid_disks)
list_for_each_entry(rdev, &mddev->disks, same_set) {
int j = rdev->raid_disk;
- dev_info_t *disk = conf->disks + j;
+ struct dev_info *disk = conf->disks + j;
sector_t sectors;
if (j < 0 || j >= raid_disks || disk->rdev) {
@@ -266,7 +266,7 @@ static int linear_stop (struct mddev *mddev)
static int linear_make_request (struct mddev *mddev, struct bio *bio)
{
- dev_info_t *tmp_dev;
+ struct dev_info *tmp_dev;
sector_t start_sector;
if (unlikely(bio->bi_rw & REQ_FLUSH)) {
diff --git a/drivers/md/linear.h b/drivers/md/linear.h
index 367967a53009..4d0cf3c7cd46 100644
--- a/drivers/md/linear.h
+++ b/drivers/md/linear.h
@@ -6,13 +6,11 @@ struct dev_info {
sector_t end_sector;
};
-typedef struct dev_info dev_info_t;
-
struct linear_private_data
{
struct rcu_head rcu;
sector_t array_sectors;
- dev_info_t disks[0];
+ struct dev_info disks[0];
};
OpenPOWER on IntegriCloud