Blame view

drivers/md/raid0.h 892 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  #ifndef _RAID0_H
  #define _RAID0_H
e373ab109   NeilBrown   md/raid0: typedef...
4
  struct strip_zone {
dc5826638   Andre Noll   md: raid0: Replac...
5
  	sector_t zone_end;	/* Start of the next zone (in sectors) */
019c4e2f3   Andre Noll   md: raid0: Repres...
6
  	sector_t dev_start;	/* Zone offset in real dev (in sectors) */
ba13da47f   NeilBrown   md: add proper me...
7
  	int	 nb_dev;	/* # of devices attached to the zone */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
8
  };
c84a1372d   NeilBrown   md/raid0: avoid R...
9
10
11
12
13
14
15
16
17
18
19
20
21
  /* Linux 3.14 (20d0189b101) made an unintended change to
   * the RAID0 layout for multi-zone arrays (where devices aren't all
   * the same size.
   * RAID0_ORIG_LAYOUT restores the original layout
   * RAID0_ALT_MULTIZONE_LAYOUT uses the altered layout
   * The layouts are identical when there is only one zone (all
   * devices the same size).
   */
  
  enum r0layout {
  	RAID0_ORIG_LAYOUT = 1,
  	RAID0_ALT_MULTIZONE_LAYOUT = 2,
  };
e373ab109   NeilBrown   md/raid0: typedef...
22
  struct r0conf {
ba13da47f   NeilBrown   md: add proper me...
23
24
25
26
  	struct strip_zone	*strip_zone;
  	struct md_rdev		**devlist; /* lists of rdevs, pointed to
  					    * by strip_zone->dev */
  	int			nr_strip_zones;
c84a1372d   NeilBrown   md/raid0: avoid R...
27
  	enum r0layout		layout;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
28
  };
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
29
  #endif