aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-04-02 14:55:32 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 14:55:32 -0400
commit0cea9c78270cdf1d2ad74ce0e083d5555a0842e8 (patch)
tree783785811de9ed558ec1179a6bc201dd6161cae6 /drivers/md/dm-exception-store.c
parent493df71c6420b211a68ae82b889c1e8a5fe701be (diff)
dm exception store: move dm_target pointer
Move target pointer from snapshot to exception store. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-exception-store.c')
-rw-r--r--drivers/md/dm-exception-store.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 8912a3637cae..fe0cfa677139 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -137,7 +137,7 @@ int dm_exception_store_type_unregister(struct dm_exception_store_type *type)
137} 137}
138EXPORT_SYMBOL(dm_exception_store_type_unregister); 138EXPORT_SYMBOL(dm_exception_store_type_unregister);
139 139
140int dm_exception_store_create(const char *type_name, 140int dm_exception_store_create(const char *type_name, struct dm_target *ti,
141 struct dm_exception_store **store) 141 struct dm_exception_store **store)
142{ 142{
143 int r = 0; 143 int r = 0;
@@ -155,6 +155,7 @@ int dm_exception_store_create(const char *type_name,
155 } 155 }
156 156
157 tmp_store->type = type; 157 tmp_store->type = type;
158 tmp_store->ti = ti;
158 159
159 r = type->ctr(tmp_store, 0, NULL); 160 r = type->ctr(tmp_store, 0, NULL);
160 if (r) { 161 if (r) {