Lines Matching full:store

9 #include "dm-exception-store.h"
65 * 'dm-exception-store-<type_name>' is too long of a name in my
67 * containing exception store implementations be 'dm-exstore-<type_name>'.
143 static int set_chunk_size(struct dm_exception_store *store, in set_chunk_size() argument
154 store->chunk_size = store->chunk_mask = store->chunk_shift = 0; in set_chunk_size()
158 return dm_exception_store_set_chunk_size(store, chunk_size, error); in set_chunk_size()
161 int dm_exception_store_set_chunk_size(struct dm_exception_store *store, in dm_exception_store_set_chunk_size() argument
173 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
175 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
185 store->chunk_size = chunk_size; in dm_exception_store_set_chunk_size()
186 store->chunk_mask = chunk_size - 1; in dm_exception_store_set_chunk_size()
187 store->chunk_shift = __ffs(chunk_size); in dm_exception_store_set_chunk_size()
195 struct dm_exception_store **store) in dm_exception_store_create() argument
203 ti->error = "Insufficient exception store arguments"; in dm_exception_store_create()
209 ti->error = "Exception store allocation failed"; in dm_exception_store_create()
219 ti->error = "Exception store type is not P or N"; in dm_exception_store_create()
225 ti->error = "Exception store type not recognised"; in dm_exception_store_create()
239 ti->error = "Exception store type constructor failed"; in dm_exception_store_create()
244 *store = tmp_store; in dm_exception_store_create()
255 void dm_exception_store_destroy(struct dm_exception_store *store) in dm_exception_store_destroy() argument
257 store->type->dtr(store); in dm_exception_store_destroy()
258 put_type(store->type); in dm_exception_store_destroy()
259 kfree(store); in dm_exception_store_destroy()
269 DMERR("Unable to register transient exception store type."); in dm_exception_store_init()
275 DMERR("Unable to register persistent exception store type"); in dm_exception_store_init()