diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2007-10-19 17:47:58 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2007-10-19 21:01:22 -0400 |
commit | aa5617c55357d86c9082ba1d66fa9795370c9954 (patch) | |
tree | 9dd542c6ce1a5d14cb6366113645cdb7131350a2 | |
parent | 6b3df0d7a5e85ad2afd3eecc50e2dee59e876ae8 (diff) |
dm raid1: add mirror_set to struct mirror
Store a pointer to the owning mirror_set structure within each mirror
structure for a subsequent patch to use.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
-rw-r--r-- | drivers/md/dm-raid1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 8aafbb7ec574..31123d4a6b9c 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -114,6 +114,7 @@ struct region { | |||
114 | * Mirror set structures. | 114 | * Mirror set structures. |
115 | *---------------------------------------------------------------*/ | 115 | *---------------------------------------------------------------*/ |
116 | struct mirror { | 116 | struct mirror { |
117 | struct mirror_set *ms; | ||
117 | atomic_t error_count; | 118 | atomic_t error_count; |
118 | struct dm_dev *dev; | 119 | struct dm_dev *dev; |
119 | sector_t offset; | 120 | sector_t offset; |
@@ -1017,6 +1018,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti, | |||
1017 | return -ENXIO; | 1018 | return -ENXIO; |
1018 | } | 1019 | } |
1019 | 1020 | ||
1021 | ms->mirror[mirror].ms = ms; | ||
1020 | ms->mirror[mirror].offset = offset; | 1022 | ms->mirror[mirror].offset = offset; |
1021 | 1023 | ||
1022 | return 0; | 1024 | return 0; |