* [2.6.24 PATCH 25/25] dm raid1: add mirror_set to struct mirror
@ 2007-10-12 17:23 Alasdair G Kergon
0 siblings, 0 replies; only message in thread
From: Alasdair G Kergon @ 2007-10-12 17:23 UTC (permalink / raw)
To: Linus Torvalds; +Cc: dm-devel, linux-kernel, Jonathan Brassow
From: Jonathan Brassow <jbrassow@redhat.com>
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>
---
drivers/md/dm-raid1.c | 2 ++
1 files changed, 2 insertions(+)
Index: linux-2.6.23/drivers/md/dm-raid1.c
===================================================================
--- linux-2.6.23.orig/drivers/md/dm-raid1.c 2007-10-12 15:03:32.000000000 +0100
+++ linux-2.6.23/drivers/md/dm-raid1.c 2007-10-12 15:03:33.000000000 +0100
@@ -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
return -ENXIO;
}
+ ms->mirror[mirror].ms = ms;
ms->mirror[mirror].offset = offset;
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-12 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12 17:23 [2.6.24 PATCH 25/25] dm raid1: add mirror_set to struct mirror Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®