blob: b685ddd7d7f76c25553ce88abd049fd9ead545e6 [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 {
NeilBrown3cb03002011-10-11 16:45:26 +11005 struct md_rdev *rdev;
Sandeep K Sinha4db7cdc2009-06-16 16:56:13 +10006 sector_t end_sector;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007};
8
NeilBrowne849b932011-10-11 16:48:54 +11009struct linear_conf
Linus Torvalds1da177e2005-04-16 15:20:36 -070010{
NeilBrown1b6afa12011-08-25 14:43:53 +100011 struct rcu_head rcu;
Andre Nolld6e22152008-07-21 17:05:25 +100012 sector_t array_sectors;
NeilBrowna7120772011-10-11 16:48:49 +110013 struct dev_info disks[0];
Linus Torvalds1da177e2005-04-16 15:20:36 -070014};
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#endif