Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/persistent-data/
Ddm-space-map.h19 struct dm_space_map { struct
20 void (*destroy)(struct dm_space_map *sm); argument
25 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); argument
31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); argument
41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); argument
43 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); argument
44 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, argument
46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); argument
48 int (*commit)(struct dm_space_map *sm); argument
50 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
[all …]
Ddm-space-map-disk.c26 struct dm_space_map sm;
35 static void sm_disk_destroy(struct dm_space_map *sm) in sm_disk_destroy()
42 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in sm_disk_extend()
49 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_blocks()
58 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_disk_get_nr_free()
67 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_get_count()
75 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()
90 static int sm_disk_set_count(struct dm_space_map *sm, dm_block_t b, in sm_disk_set_count()
104 static int sm_disk_inc_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_disk_inc_blocks()
117 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-metadata.c169 struct dm_space_map sm;
276 static void sm_metadata_destroy(struct dm_space_map *sm) in sm_metadata_destroy()
283 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_blocks()
292 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in sm_metadata_get_nr_free()
302 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count()
342 static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm, in sm_metadata_count_is_more_than_one()
394 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_set_count()
413 static int sm_metadata_inc_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_metadata_inc_blocks()
432 static int sm_metadata_dec_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in sm_metadata_dec_blocks()
449 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.h13 struct dm_space_map;
20 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
23 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
Ddm-space-map-metadata.h28 struct dm_space_map *dm_sm_metadata_init(void);
33 int dm_sm_metadata_create(struct dm_space_map *sm,
41 int dm_sm_metadata_open(struct dm_space_map *sm,
Ddm-transaction-manager.h14 struct dm_space_map;
147 struct dm_space_map **sm);
152 struct dm_space_map **sm);
Ddm-transaction-manager.c95 struct dm_space_map *sm;
163 struct dm_space_map *sm) in dm_tm_create()
464 struct dm_space_map **sm, in dm_tm_create_internal()
506 struct dm_space_map **sm) in dm_tm_create_with_sm()
515 struct dm_space_map **sm) in dm_tm_open_with_sm()
/linux-6.6.21/drivers/md/
Ddm-thin-metadata.c153 struct dm_space_map *metadata_sm;
154 struct dm_space_map *data_sm;
324 typedef int (*run_fn)(struct dm_space_map *, dm_block_t, dm_block_t);
326 static void with_runs(struct dm_space_map *sm, const __le64 *value_le, unsigned int count, run_fn f… in with_runs()
358 with_runs((struct dm_space_map *) context, in data_block_inc()
364 with_runs((struct dm_space_map *) context, in data_block_dec()
2028 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.c274 struct dm_space_map *sm;
Ddm-cache-metadata.c111 struct dm_space_map *metadata_sm;