blob: 540e65d92642d8427fbe3af4d5960834cc967a74 [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 _RAID0_H
3#define _RAID0_H
4
NeilBrowne373ab12011-10-11 16:48:59 +11005struct strip_zone {
Andre Nolldc582662009-06-16 16:18:43 +10006 sector_t zone_end; /* Start of the next zone (in sectors) */
Andre Noll019c4e22009-01-09 08:31:06 +11007 sector_t dev_start; /* Zone offset in real dev (in sectors) */
NeilBrownba13da42012-03-19 12:46:39 +11008 int nb_dev; /* # of devices attached to the zone */
Linus Torvalds1da177e2005-04-16 15:20:36 -07009};
10
NeilBrowne373ab12011-10-11 16:48:59 +110011struct r0conf {
NeilBrownba13da42012-03-19 12:46:39 +110012 struct strip_zone *strip_zone;
13 struct md_rdev **devlist; /* lists of rdevs, pointed to
14 * by strip_zone->dev */
15 int nr_strip_zones;
Linus Torvalds1da177e2005-04-16 15:20:36 -070016};
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif