Lines Matching full:store

8 #include "dm-exception-store.h"
64 * 'dm-exception-store-<type_name>' is too long of a name in my
66 * containing exception store implementations be 'dm-exstore-<type_name>'.
142 static int set_chunk_size(struct dm_exception_store *store, in set_chunk_size() argument
153 store->chunk_size = store->chunk_mask = store->chunk_shift = 0; in set_chunk_size()
157 return dm_exception_store_set_chunk_size(store, chunk_size, error); in set_chunk_size()
160 int dm_exception_store_set_chunk_size(struct dm_exception_store *store, in dm_exception_store_set_chunk_size() argument
172 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
174 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
184 store->chunk_size = chunk_size; in dm_exception_store_set_chunk_size()
185 store->chunk_mask = chunk_size - 1; in dm_exception_store_set_chunk_size()
186 store->chunk_shift = __ffs(chunk_size); in dm_exception_store_set_chunk_size()
194 struct dm_exception_store **store) in dm_exception_store_create() argument
202 ti->error = "Insufficient exception store arguments"; in dm_exception_store_create()
208 ti->error = "Exception store allocation failed"; in dm_exception_store_create()
218 ti->error = "Exception store type is not P or N"; in dm_exception_store_create()
224 ti->error = "Exception store type not recognised"; in dm_exception_store_create()
238 ti->error = "Exception store type constructor failed"; in dm_exception_store_create()
243 *store = tmp_store; in dm_exception_store_create()
254 void dm_exception_store_destroy(struct dm_exception_store *store) in dm_exception_store_destroy() argument
256 store->type->dtr(store); in dm_exception_store_destroy()
257 put_type(store->type); in dm_exception_store_destroy()
258 kfree(store); in dm_exception_store_destroy()
268 DMERR("Unable to register transient exception store type."); in dm_exception_store_init()
274 DMERR("Unable to register persistent exception store type"); in dm_exception_store_init()