summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorJonathan Brassow2012-07-31 02:03:52 +0200
committerNeilBrown2012-07-31 02:03:52 +0200
commit0eaf822cb3dfcf2a64b2d27f4f6219186adb2695 (patch)
tree9ff680dca1ecb054793f90df472cedd63d32498d /drivers/md/raid1.h
parentMD RAID10: rename mirror_info structure (diff)
downloadkernel-qcow2-linux-0eaf822cb3dfcf2a64b2d27f4f6219186adb2695.tar.gz
kernel-qcow2-linux-0eaf822cb3dfcf2a64b2d27f4f6219186adb2695.tar.xz
kernel-qcow2-linux-0eaf822cb3dfcf2a64b2d27f4f6219186adb2695.zip
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 80ded139314c..6b49336575fe 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -1,7 +1,7 @@
#ifndef _RAID1_H
#define _RAID1_H
-struct mirror_info {
+struct raid1_info {
struct md_rdev *rdev;
sector_t head_position;
};
@@ -24,7 +24,7 @@ struct pool_info {
struct r1conf {
struct mddev *mddev;
- struct mirror_info *mirrors; /* twice 'raid_disks' to
+ struct raid1_info *mirrors; /* twice 'raid_disks' to
* allow for replacements.
*/
int raid_disks;