blob: 05539d9c97f06212ad3f436585e6574557c5f962 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _RAID0_H
2#define _RAID0_H
3
NeilBrowne373ab12011-10-11 16:48:59 +11004struct strip_zone {
Andre Nolldc582662009-06-16 16:18:43 +10005 sector_t zone_end; /* Start of the next zone (in sectors) */
Andre Noll019c4e22009-01-09 08:31:06 +11006 sector_t dev_start; /* Zone offset in real dev (in sectors) */
NeilBrownba13da42012-03-19 12:46:39 +11007 int nb_dev; /* # of devices attached to the zone */
Linus Torvalds1da177e2005-04-16 15:20:36 -07008};
9
NeilBrowne373ab12011-10-11 16:48:59 +110010struct r0conf {
NeilBrownba13da42012-03-19 12:46:39 +110011 struct strip_zone *strip_zone;
12 struct md_rdev **devlist; /* lists of rdevs, pointed to
13 * by strip_zone->dev */
14 int nr_strip_zones;
15 int has_merge_bvec; /* at least one member has
16 * a merge_bvec_fn */
Linus Torvalds1da177e2005-04-16 15:20:36 -070017};
18
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#endif