blob: 8d392e6098b3295ddbebac59e418a27ae21712e5 [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;
colyli@suse.de6f9c02a2017-01-28 21:11:49 +080013 int raid_disks; /* a copy of mddev->raid_disks */
NeilBrowna7120772011-10-11 16:48:49 +110014 struct dev_info disks[0];
Linus Torvalds1da177e2005-04-16 15:20:36 -070015};
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#endif