aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-exception-store.c')
-rw-r--r--drivers/md/dm-exception-store.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index fe0cfa677139..59c949b53106 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -138,6 +138,8 @@ int dm_exception_store_type_unregister(struct dm_exception_store_type *type)
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, 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,
142 chunk_t chunk_shift,
141 struct dm_exception_store **store) 143 struct dm_exception_store **store)
142{ 144{
143 int r = 0; 145 int r = 0;
@@ -157,6 +159,10 @@ int dm_exception_store_create(const char *type_name, struct dm_target *ti,
157 tmp_store->type = type; 159 tmp_store->type = type;
158 tmp_store->ti = ti; 160 tmp_store->ti = ti;
159 161
162 tmp_store->chunk_size = chunk_size;
163 tmp_store->chunk_mask = chunk_mask;
164 tmp_store->chunk_shift = chunk_shift;
165
160 r = type->ctr(tmp_store, 0, NULL); 166 r = type->ctr(tmp_store, 0, NULL);
161 if (r) { 167 if (r) {
162 put_type(type); 168 put_type(type);