- Linus: more PageDirty / swapcache handling
[davej-history.git] / include / linux / raid / raid0.h
blob0b93729576cde7723310d2172c075af0c0dc58e7
1 #ifndef _RAID0_H
2 #define _RAID0_H
4 #include <linux/raid/md.h>
6 struct strip_zone
8 unsigned long zone_offset; /* Zone offset in md_dev */
9 unsigned long dev_offset; /* Zone offset in real dev */
10 unsigned long size; /* Zone size */
11 int nb_dev; /* # of devices attached to the zone */
12 mdk_rdev_t *dev[MD_SB_DISKS]; /* Devices attached to the zone */
15 struct raid0_hash
17 struct strip_zone *zone0, *zone1;
20 struct raid0_private_data
22 struct raid0_hash *hash_table; /* Dynamically allocated */
23 struct strip_zone *strip_zone; /* This one too */
24 int nr_strip_zones;
25 struct strip_zone *smallest;
26 int nr_zones;
29 typedef struct raid0_private_data raid0_conf_t;
31 #define mddev_to_conf(mddev) ((raid0_conf_t *) mddev->private)
33 #endif