Lines Matching refs:store
26 static void transient_dtr(struct dm_exception_store *store) in transient_dtr() argument
28 kfree(store->context); in transient_dtr()
31 static int transient_read_metadata(struct dm_exception_store *store, in transient_read_metadata() argument
39 static int transient_prepare_exception(struct dm_exception_store *store, in transient_prepare_exception() argument
42 struct transient_c *tc = store->context; in transient_prepare_exception()
43 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_prepare_exception()
45 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
48 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
49 tc->next_free += store->chunk_size; in transient_prepare_exception()
54 static void transient_commit_exception(struct dm_exception_store *store, in transient_commit_exception() argument
63 static void transient_usage(struct dm_exception_store *store, in transient_usage() argument
68 *sectors_allocated = ((struct transient_c *) store->context)->next_free; in transient_usage()
69 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_usage()
73 static int transient_ctr(struct dm_exception_store *store, char *options) in transient_ctr() argument
82 store->context = tc; in transient_ctr()
87 static unsigned transient_status(struct dm_exception_store *store, in transient_status() argument
97 DMEMIT(" N %llu", (unsigned long long)store->chunk_size); in transient_status()