acpi: fix integer as NULL pointer warning
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / linux / raid / linear.h
blobba15469daf114e3eb3d75a3ba2cde1659fdfb02e
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 struct linear_private_data *prev; /* earlier version */
17 dev_info_t **hash_table;
18 sector_t hash_spacing;
19 sector_t array_size;
20 int preshift; /* shift before dividing by hash_spacing */
21 dev_info_t disks[0];
25 typedef struct linear_private_data linear_conf_t;
27 #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
29 #endif