From: Jonathan Brassow Date: Fri, 19 Oct 2007 21:47:58 +0000 (+0100) Subject: dm raid1: add mirror_set to struct mirror X-Git-Tag: v2.6.24-rc1~130^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa5617c55357d86c9082ba1d66fa9795370c9954;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 8aafbb7ec57..31123d4a6b9 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c @@ -114,6 +114,7 @@ struct region { * Mirror set structures. *---------------------------------------------------------------*/ struct mirror { + struct mirror_set *ms; atomic_t error_count; struct dm_dev *dev; sector_t offset; @@ -1017,6 +1018,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti, return -ENXIO; } + ms->mirror[mirror].ms = ms; ms->mirror[mirror].offset = offset; return 0;