blob: 8381d651d4ed0a4453cbeb3bb250003c2f763fb6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LINEAR_H
3#define _LINEAR_H
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005struct dev_info {
NeilBrown3cb03002011-10-11 16:45:26 +11006 struct md_rdev *rdev;
Sandeep K Sinha4db7cdc2009-06-16 16:56:13 +10007 sector_t end_sector;
Linus Torvalds1da177e2005-04-16 15:20:36 -07008};
9
NeilBrowne849b932011-10-11 16:48:54 +110010struct linear_conf
Linus Torvalds1da177e2005-04-16 15:20:36 -070011{
NeilBrown1b6afa12011-08-25 14:43:53 +100012 struct rcu_head rcu;
Andre Nolld6e22152008-07-21 17:05:25 +100013 sector_t array_sectors;
colyli@suse.de03a9e242017-01-28 21:11:49 +080014 int raid_disks; /* a copy of mddev->raid_disks */
NeilBrowna7120772011-10-11 16:48:49 +110015 struct dev_info disks[0];
Linus Torvalds1da177e2005-04-16 15:20:36 -070016};
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif