Linux 2.6.28-rc5
[cris-mirror.git] / include / linux / raid / linear.h
blobf38b9c586afbc38c2a3187ac479735b14ad5fffb
1 #ifndef _LINEAR_H
2 #define _LINEAR_H
4 #include <linux/raid/md.h>
6 struct dev_info {
7 mdk_rdev_t *rdev;
8 sector_t num_sectors;
9 sector_t start_sector;
12 typedef struct dev_info dev_info_t;
14 struct linear_private_data
16 struct linear_private_data *prev; /* earlier version */
17 dev_info_t **hash_table;
18 sector_t spacing;
19 sector_t array_sectors;
20 int sector_shift; /* shift before dividing
21 * by spacing
23 dev_info_t disks[0];
27 typedef struct linear_private_data linear_conf_t;
29 #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
31 #endif