Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _RAID0_H |
| 2 | #define _RAID0_H |
| 3 | |
NeilBrown | e373ab1 | 2011-10-11 16:48:59 +1100 | [diff] [blame] | 4 | struct strip_zone { |
Andre Noll | dc58266 | 2009-06-16 16:18:43 +1000 | [diff] [blame] | 5 | sector_t zone_end; /* Start of the next zone (in sectors) */ |
Andre Noll | 019c4e2 | 2009-01-09 08:31:06 +1100 | [diff] [blame] | 6 | sector_t dev_start; /* Zone offset in real dev (in sectors) */ |
NeilBrown | ba13da4 | 2012-03-19 12:46:39 +1100 | [diff] [blame] | 7 | int nb_dev; /* # of devices attached to the zone */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | }; |
| 9 | |
NeilBrown | e373ab1 | 2011-10-11 16:48:59 +1100 | [diff] [blame] | 10 | struct r0conf { |
NeilBrown | ba13da4 | 2012-03-19 12:46:39 +1100 | [diff] [blame] | 11 | 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | }; |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif |