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_block)(struct dm_space_map *sm, dm_block_t b); argument
[all …]
Ddm-space-map-metadata.c167 struct dm_space_map sm;
274 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy()
281 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks()
290 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free()
300 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count()
340 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one()
392 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_set_count()
411 static int sm_metadata_inc_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_inc_block()
428 static int sm_metadata_dec_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_dec_block()
445 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()
126 static int sm_disk_inc_block(struct dm_space_map *sm, dm_block_t b) in sm_disk_inc_block()
143 static int sm_disk_dec_block(struct dm_space_map *sm, dm_block_t b) in sm_disk_dec_block()
[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;
130 struct dm_space_map **sm);
135 struct dm_space_map **sm);
Ddm-transaction-manager.c93 struct dm_space_map *sm;
161 struct dm_space_map *sm) in dm_tm_create()
398 struct dm_space_map **sm, in dm_tm_create_internal()
440 struct dm_space_map **sm) in dm_tm_create_with_sm()
449 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;
316 struct dm_space_map *sm = context; in data_block_inc()
328 struct dm_space_map *sm = context; in data_block_dec()
2039 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;