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>
This commit is contained in:
Jonathan Brassow
2012-07-31 10:03:52 +10:00
committed by NeilBrown
parent dc280d987f
commit 0eaf822cb3
2 changed files with 9 additions and 9 deletions

View File

@@ -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;