summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-07-31 10:03:52 +1000
committerNeilBrown <neilb@suse.de>2012-07-31 10:03:52 +1000
commit0eaf822cb3dfcf2a64b2d27f4f6219186adb2695 (patch)
tree9ff680dca1ecb054793f90df472cedd63d32498d /drivers/md/raid1.h
parentdc280d987f039ef35ac1e59c09b7154b61f385cf (diff)
downloadop-kernel-dev-0eaf822cb3dfcf2a64b2d27f4f6219186adb2695.zip
op-kernel-dev-0eaf822cb3dfcf2a64b2d27f4f6219186adb2695.tar.gz
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 80ded13..6b49336 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;
OpenPOWER on IntegriCloud