Linux v2.6.15-rc6
[pohmelfs.git] / include / linux / raid / linear.h
blob7eaf290e10e75d344a78174e3602b38e3179c400
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 size;
9 sector_t offset;
12 typedef struct dev_info dev_info_t;
14 struct linear_private_data
16 dev_info_t **hash_table;
17 sector_t hash_spacing;
18 int preshift; /* shift before dividing by hash_spacing */
19 dev_info_t disks[0];
23 typedef struct linear_private_data linear_conf_t;
25 #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
27 #endif