Lines Matching defs:store
9 #include "dm-exception-store.h"
22 * Implementation of the store for non-persistent snapshots.
29 static void transient_dtr(struct dm_exception_store *store)
31 kfree(store->context);
34 static int transient_read_metadata(struct dm_exception_store *store,
42 static int transient_prepare_exception(struct dm_exception_store *store,
45 struct transient_c *tc = store->context;
46 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev);
48 if (size < (tc->next_free + store->chunk_size))
51 e->new_chunk = sector_to_chunk(store, tc->next_free);
52 tc->next_free += store->chunk_size;
57 static void transient_commit_exception(struct dm_exception_store *store,
66 static void transient_usage(struct dm_exception_store *store,
71 *sectors_allocated = ((struct transient_c *) store->context)->next_free;
72 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev);
76 static int transient_ctr(struct dm_exception_store *store, char *options)
85 store->context = tc;
90 static unsigned int transient_status(struct dm_exception_store *store,
100 DMEMIT(" N %llu", (unsigned long long)store->chunk_size);
140 DMWARN("Unable to register transient exception store type");
146 DMWARN("Unable to register old-style transient exception store type");