Home
last modified time | relevance | path

Searched refs:dm_space_map (Results 1 – 11 of 11) sorted by relevance

/drivers/md/persistent-data/
Ddm-space-map.h18 struct dm_space_map { struct
19 void (*destroy)(struct dm_space_map *sm); argument
24 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); argument
30 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); argument
40 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); argument
42 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); argument
43 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, argument
45 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); argument
47 int (*commit)(struct dm_space_map *sm); argument
49 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
[all …]
Ddm-space-map-metadata.c167 struct dm_space_map sm;
273 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy()
280 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks()
289 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free()
299 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count()
339 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one()
391 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_set_count()
410 static int sm_metadata_inc_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_metadata_inc_blocks()
429 static int sm_metadata_dec_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_metadata_dec_blocks()
446 static int sm_metadata_new_block_(struct dm_space_map *sm, dm_block_t *b) in sm_metadata_new_block_()
[all …]
Ddm-space-map-disk.c25 struct dm_space_map sm;
34 static void sm_disk_destroy(struct dm_space_map *sm) in sm_disk_destroy()
41 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_disk_extend()
48 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_blocks()
56 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free()
64 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count()
71 static int sm_disk_count_is_more_than_one(struct dm_space_map *sm, dm_block_t b, in sm_disk_count_is_more_than_one()
86 static int sm_disk_set_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_set_count()
101 static int sm_disk_inc_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_disk_inc_blocks()
114 static int sm_disk_dec_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_disk_dec_blocks()
[all …]
Ddm-space-map-disk.h12 struct dm_space_map;
19 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
22 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
Ddm-space-map-metadata.h27 struct dm_space_map *dm_sm_metadata_init(void);
32 int dm_sm_metadata_create(struct dm_space_map *sm,
40 int dm_sm_metadata_open(struct dm_space_map *sm,
Ddm-transaction-manager.h13 struct dm_space_map;
146 struct dm_space_map **sm);
151 struct dm_space_map **sm);
Ddm-transaction-manager.c93 struct dm_space_map *sm;
161 struct dm_space_map *sm) in dm_tm_create()
459 struct dm_space_map **sm, in dm_tm_create_internal()
501 struct dm_space_map **sm) in dm_tm_create_with_sm()
510 struct dm_space_map **sm) in dm_tm_open_with_sm()
/drivers/md/
Ddm-thin-metadata.c150 struct dm_space_map *metadata_sm;
151 struct dm_space_map *data_sm;
319 typedef int (*run_fn)(struct dm_space_map *, dm_block_t, dm_block_t);
321 static void with_runs(struct dm_space_map *sm, const __le64 *value_le, unsigned count, run_fn fn) in with_runs()
353 with_runs((struct dm_space_map *) context, in data_block_inc()
359 with_runs((struct dm_space_map *) context, in data_block_dec()
2058 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map()
Ddm-clone-metadata.c143 struct dm_space_map *sm;
Ddm-era-target.c264 struct dm_space_map *sm;
Ddm-cache-metadata.c110 struct dm_space_map *metadata_sm;