static int make_request(struct mddev *mddev, struct bio * bio)
{
conf_t *conf = mddev->private;
- mirror_info_t *mirror;
+ struct mirror_info *mirror;
struct r1bio *r1_bio;
struct bio *read_bio;
int i, disks;
conf_t *conf = mddev->private;
int err = -EEXIST;
int mirror = 0;
- mirror_info_t *p;
+ struct mirror_info *p;
int first = 0;
int last = mddev->raid_disks - 1;
conf_t *conf = mddev->private;
int err = 0;
struct md_rdev *rdev;
- mirror_info_t *p = conf->mirrors+ number;
+ struct mirror_info *p = conf->mirrors+ number;
print_conf(conf);
rdev = p->rdev;
{
conf_t *conf;
int i;
- mirror_info_t *disk;
+ struct mirror_info *disk;
struct md_rdev *rdev;
int err = -ENOMEM;
*/
mempool_t *newpool, *oldpool;
struct pool_info *newpoolinfo;
- mirror_info_t *newmirrors;
+ struct mirror_info *newmirrors;
conf_t *conf = mddev->private;
int cnt, raid_disks;
unsigned long flags;
#ifndef _RAID1_H
#define _RAID1_H
-typedef struct mirror_info mirror_info_t;
-
struct mirror_info {
struct md_rdev *rdev;
sector_t head_position;
struct r1_private_data_s {
struct mddev *mddev;
- mirror_info_t *mirrors;
+ struct mirror_info *mirrors;
int raid_disks;
/* When choose the best device for a read (read_balance())
static int make_request(struct mddev *mddev, struct bio * bio)
{
conf_t *conf = mddev->private;
- mirror_info_t *mirror;
+ struct mirror_info *mirror;
struct r10bio *r10_bio;
struct bio *read_bio;
int i;
static void print_conf(conf_t *conf)
{
int i;
- mirror_info_t *tmp;
+ struct mirror_info *tmp;
printk(KERN_DEBUG "RAID10 conf printout:\n");
if (!conf) {
{
int i;
conf_t *conf = mddev->private;
- mirror_info_t *tmp;
+ struct mirror_info *tmp;
int count = 0;
unsigned long flags;
else
mirror = first;
for ( ; mirror <= last ; mirror++) {
- mirror_info_t *p = &conf->mirrors[mirror];
+ struct mirror_info *p = &conf->mirrors[mirror];
if (p->recovery_disabled == mddev->recovery_disabled)
continue;
if (!p->rdev)
conf_t *conf = mddev->private;
int err = 0;
struct md_rdev *rdev;
- mirror_info_t *p = conf->mirrors+ number;
+ struct mirror_info *p = conf->mirrors+ number;
print_conf(conf);
rdev = p->rdev;
{
conf_t *conf;
int i, disk_idx, chunk_size;
- mirror_info_t *disk;
+ struct mirror_info *disk;
struct md_rdev *rdev;
sector_t size;
#ifndef _RAID10_H
#define _RAID10_H
-typedef struct mirror_info mirror_info_t;
-
struct mirror_info {
struct md_rdev *rdev;
sector_t head_position;
struct r10_private_data_s {
struct mddev *mddev;
- mirror_info_t *mirrors;
+ struct mirror_info *mirrors;
int raid_disks;
spinlock_t device_lock;