Lines Matching full: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) in transient_dtr() argument
31 kfree(store->context); in transient_dtr()
34 static int transient_read_metadata(struct dm_exception_store *store, in transient_read_metadata() argument
42 static int transient_prepare_exception(struct dm_exception_store *store, in transient_prepare_exception() argument
45 struct transient_c *tc = store->context; in transient_prepare_exception()
46 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_prepare_exception()
48 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
51 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
52 tc->next_free += store->chunk_size; in transient_prepare_exception()
57 static void transient_commit_exception(struct dm_exception_store *store, in transient_commit_exception() argument
66 static void transient_usage(struct dm_exception_store *store, in transient_usage() argument
71 *sectors_allocated = ((struct transient_c *) store->context)->next_free; in transient_usage()
72 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_usage()
76 static int transient_ctr(struct dm_exception_store *store, char *options) in transient_ctr() argument
85 store->context = tc; in transient_ctr()
90 static unsigned int transient_status(struct dm_exception_store *store, in transient_status() argument
100 DMEMIT(" N %llu", (unsigned long long)store->chunk_size); in transient_status()
140 DMWARN("Unable to register transient exception store type"); in dm_transient_snapshot_init()
146 DMWARN("Unable to register old-style transient exception store type"); in dm_transient_snapshot_init()