Lines Matching defs: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,
154 store->chunk_size = store->chunk_mask = store->chunk_shift = 0;
158 return dm_exception_store_set_chunk_size(store, chunk_size, error);
161 int dm_exception_store_set_chunk_size(struct dm_exception_store *store,
173 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) ||
175 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) {
185 store->chunk_size = chunk_size;
186 store->chunk_mask = chunk_size - 1;
187 store->chunk_shift = __ffs(chunk_size);
195 struct dm_exception_store **store)
203 ti->error = "Insufficient exception store arguments";
209 ti->error = "Exception store allocation failed";
219 ti->error = "Exception store type is not P or N";
225 ti->error = "Exception store type not recognised";
239 ti->error = "Exception store type constructor failed";
244 *store = tmp_store;
255 void dm_exception_store_destroy(struct dm_exception_store *store)
257 store->type->dtr(store);
258 put_type(store->type);
259 kfree(store);
269 DMERR("Unable to register transient exception store type.");
275 DMERR("Unable to register persistent exception store type");