aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-04-02 14:55:33 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 14:55:33 -0400
commit49beb2b87a972a994ff77633234ca3bf0d30a1d8 (patch)
tree4b281ebd48624d0fbe74b93fa72baa834211ca2f /drivers/md/dm-exception-store.c
parentd0216849519bec8dc96301a3cd80316e71243839 (diff)
dm exception store: move cow pointer
Move COW device 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 59c949b53106..2078b92470a1 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -139,7 +139,7 @@ EXPORT_SYMBOL(dm_exception_store_type_unregister);
139 139
140int dm_exception_store_create(const char *type_name, struct dm_target *ti, 140int dm_exception_store_create(const char *type_name, struct dm_target *ti,
141 chunk_t chunk_size, chunk_t chunk_mask, 141 chunk_t chunk_size, chunk_t chunk_mask,
142 chunk_t chunk_shift, 142 chunk_t chunk_shift, struct dm_dev *cow,
143 struct dm_exception_store **store) 143 struct dm_exception_store **store)
144{ 144{
145 int r = 0; 145 int r = 0;
@@ -163,6 +163,8 @@ int dm_exception_store_create(const char *type_name, struct dm_target *ti,
163 tmp_store->chunk_mask = chunk_mask; 163 tmp_store->chunk_mask = chunk_mask;
164 tmp_store->chunk_shift = chunk_shift; 164 tmp_store->chunk_shift = chunk_shift;
165 165
166 tmp_store->cow = cow;
167
166 r = type->ctr(tmp_store, 0, NULL); 168 r = type->ctr(tmp_store, 0, NULL);
167 if (r) { 169 if (r) {
168 put_type(type); 170 put_type(type);