aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-07-30 20:03:52 -0400
committerNeilBrown <neilb@suse.de>2012-07-30 20:03:52 -0400
commit0eaf822cb3dfcf2a64b2d27f4f6219186adb2695 (patch)
tree9ff680dca1ecb054793f90df472cedd63d32498d /drivers/md/raid1.h
parentdc280d987f039ef35ac1e59c09b7154b61f385cf (diff)
MD RAID1: rename mirror_info structure
MD RAID1: Rename the structure 'mirror_info' to 'raid1_info' The same structure name ('mirror_info') is used by raid10. Each of these structures are defined in there respective header files. If dm-raid is to support both RAID1 and RAID10, the header files will be included and the structure names must not collide. While only one of these structure names needs to change, this patch adds consistency to the naming of the structure. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index 80ded139314..6b49336575f 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -1,7 +1,7 @@
1#ifndef _RAID1_H 1#ifndef _RAID1_H
2#define _RAID1_H 2#define _RAID1_H
3 3
4struct mirror_info { 4struct raid1_info {
5 struct md_rdev *rdev; 5 struct md_rdev *rdev;
6 sector_t head_position; 6 sector_t head_position;
7}; 7};
@@ -24,7 +24,7 @@ struct pool_info {
24 24
25struct r1conf { 25struct r1conf {
26 struct mddev *mddev; 26 struct mddev *mddev;
27 struct mirror_info *mirrors; /* twice 'raid_disks' to 27 struct raid1_info *mirrors; /* twice 'raid_disks' to
28 * allow for replacements. 28 * allow for replacements.
29 */ 29 */
30 int raid_disks; 30 int raid_disks;