blob: 0ce29b61605a29904608c43a1cf57d87c6f25d43 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINEAR_H
2#define _LINEAR_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004struct dev_info {
5 mdk_rdev_t *rdev;
Sandeep K Sinha4db7cdc2009-06-16 16:56:13 +10006 sector_t end_sector;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007};
8
9typedef struct dev_info dev_info_t;
10
11struct linear_private_data
12{
Andre Nolld6e22152008-07-21 17:05:25 +100013 sector_t array_sectors;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 dev_info_t disks[0];
NeilBrown495d3572009-06-18 08:49:42 +100015 struct rcu_head rcu;
Linus Torvalds1da177e2005-04-16 15:20:36 -070016};
17
18
19typedef struct linear_private_data linear_conf_t;
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#endif