summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.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
commitdc280d987f039ef35ac1e59c09b7154b61f385cf (patch)
tree470cf571b46bff86454106f1f549028c8415fcd8 /drivers/md/raid10.h
parent3bbae04b126fbd4c191b4167ea46ba9c4da46425 (diff)
downloadop-kernel-dev-dc280d987f039ef35ac1e59c09b7154b61f385cf.zip
op-kernel-dev-dc280d987f039ef35ac1e59c09b7154b61f385cf.tar.gz
MD RAID10: rename mirror_info structure
MD RAID10: Rename the structure 'mirror_info' to 'raid10_info' The same structure name ('mirror_info') is used by raid1. 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. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r--drivers/md/raid10.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h
index 135b1b0..ecdb440 100644
--- a/drivers/md/raid10.h
+++ b/drivers/md/raid10.h
@@ -1,7 +1,7 @@
#ifndef _RAID10_H
#define _RAID10_H
-struct mirror_info {
+struct raid10_info {
struct md_rdev *rdev, *replacement;
sector_t head_position;
int recovery_disabled; /* matches
@@ -13,8 +13,8 @@ struct mirror_info {
struct r10conf {
struct mddev *mddev;
- struct mirror_info *mirrors;
- struct mirror_info *mirrors_new, *mirrors_old;
+ struct raid10_info *mirrors;
+ struct raid10_info *mirrors_new, *mirrors_old;
spinlock_t device_lock;
/* geometry */
OpenPOWER on IntegriCloud