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>
This commit is contained in:

committed by
NeilBrown

parent
3bbae04b12
commit
dc280d987f
@@ -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 */
|
||||
|
Reference in New Issue
Block a user