Searched refs:dm_block_t (Results 1 - 21 of 21) sorted by relevance

/drivers/md/
H A Ddm-thin-metadata.h97 dm_block_t *result);
114 dm_block_t block;
124 int dm_thin_find_block(struct dm_thin_device *td, dm_block_t block,
130 int dm_pool_alloc_data_block(struct dm_pool_metadata *pmd, dm_block_t *result);
135 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block,
136 dm_block_t data_block);
138 int dm_thin_remove_block(struct dm_thin_device *td, dm_block_t block);
144 dm_block_t *highest_mapped);
146 int dm_thin_get_mapped_count(struct dm_thin_device *td, dm_block_t *result);
149 dm_block_t *resul
[all...]
H A Ddm-thin-metadata.c92 __le64 blocknr; /* This block number, dm_block_t. */
176 dm_block_t root;
177 dm_block_t details_root;
258 static uint64_t pack_block_time(dm_block_t b, uint32_t t)
263 static void unpack_block_time(uint64_t v, dm_block_t *b, uint32_t *t)
370 dm_block_t nr_blocks, int create)
872 dm_block_t dev_root;
948 dm_block_t origin_root;
1086 dm_block_t *result)
1104 dm_block_t *resul
[all...]
H A Ddm-thin.c111 dm_block_t block;
472 dm_block_t b, struct cell_key *key)
479 static void build_virtual_key(struct dm_thin_device *td, dm_block_t b,
512 dm_block_t offset_mask;
513 dm_block_t low_water_blocks;
555 dm_block_t low_water_blocks;
676 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio)
681 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block)
719 dm_block_t block)
747 dm_block_t virt_bloc
[all...]
/drivers/md/persistent-data/
H A Ddm-space-map.h22 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks);
28 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
38 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
40 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result);
41 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b,
43 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
47 int (*inc_block)(struct dm_space_map *sm, dm_block_t b);
48 int (*dec_block)(struct dm_space_map *sm, dm_block_t b);
53 int (*new_block)(struct dm_space_map *sm, dm_block_t *b);
71 static inline int dm_sm_extend(struct dm_space_map *sm, dm_block_t extra_block
[all...]
H A Ddm-btree.h94 int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root);
100 int dm_btree_del(struct dm_btree_info *info, dm_block_t root);
109 int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root,
115 int dm_btree_insert(struct dm_btree_info *info, dm_block_t root,
116 uint64_t *keys, void *value, dm_block_t *new_root)
124 int dm_btree_insert_notify(struct dm_btree_info *info, dm_block_t root,
125 uint64_t *keys, void *value, dm_block_t *new_root,
134 int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,
135 uint64_t *keys, dm_block_t *new_root);
142 int dm_btree_find_highest_key(struct dm_btree_info *info, dm_block_t roo
[all...]
H A Ddm-persistent-data-internal.h12 static inline unsigned dm_hash_block(dm_block_t b, unsigned hash_mask)
H A Ddm-space-map-common.h50 typedef int (*load_ie_fn)(struct ll_disk *ll, dm_block_t index, struct disk_index_entry *result);
51 typedef int (*save_ie_fn)(struct ll_disk *ll, dm_block_t index, struct disk_index_entry *ie);
54 typedef dm_block_t (*max_index_entries_fn)(struct ll_disk *ll);
64 dm_block_t nr_blocks;
65 dm_block_t nr_allocated;
70 dm_block_t bitmap_root;
72 dm_block_t ref_count_root;
106 int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks);
107 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result);
108 int sm_ll_lookup(struct ll_disk *ll, dm_block_t
[all...]
H A Ddm-block-manager.h18 typedef uint64_t dm_block_t; typedef
21 dm_block_t dm_block_location(struct dm_block *b);
40 dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm);
73 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
77 int dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b,
85 int dm_bm_read_try_lock(struct dm_block_manager *bm, dm_block_t b,
93 int dm_bm_write_lock_zero(struct dm_block_manager *bm, dm_block_t b,
105 int dm_bm_unlock_move(struct dm_block *b, dm_block_t n);
H A Ddm-space-map-metadata.h23 dm_block_t nr_blocks,
24 dm_block_t superblock);
H A Ddm-transaction-manager.h86 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig,
94 int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b,
103 void dm_tm_inc(struct dm_transaction_manager *tm, dm_block_t b);
105 void dm_tm_dec(struct dm_transaction_manager *tm, dm_block_t b);
107 int dm_tm_ref(struct dm_transaction_manager *tm, dm_block_t b,
119 int dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
124 int dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
H A Ddm-space-map-disk.h20 dm_block_t nr_blocks);
H A Ddm-space-map-metadata.c42 dm_block_t block;
51 dm_block_t begin;
59 static int add_bop(struct sm_metadata *smm, enum block_op_type type, dm_block_t b)
147 static int sm_metadata_extend(struct dm_space_map *sm, dm_block_t extra_blocks)
153 static int sm_metadata_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count)
162 static int sm_metadata_get_nr_free(struct dm_space_map *sm, dm_block_t *count)
172 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b,
210 dm_block_t b, int *result)
257 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b,
276 static int sm_metadata_inc_block(struct dm_space_map *sm, dm_block_t
[all...]
H A Ddm-space-map-checker.c20 dm_block_t nr;
21 dm_block_t nr_free;
26 static int ca_get_count(struct count_array *ca, dm_block_t b, uint32_t *count)
35 static int ca_count_more_than_one(struct count_array *ca, dm_block_t b, int *r)
44 static int ca_set_count(struct count_array *ca, dm_block_t b, uint32_t count)
63 static int ca_inc_block(struct count_array *ca, dm_block_t b)
72 static int ca_dec_block(struct count_array *ca, dm_block_t b)
85 dm_block_t nr_blocks;
114 dm_block_t nr_blocks, i;
137 static int ca_extend(struct count_array *ca, dm_block_t extra_block
[all...]
H A Ddm-space-map-disk.c31 dm_block_t begin;
32 dm_block_t nr_allocated_this_transaction;
42 static int sm_disk_extend(struct dm_space_map *sm, dm_block_t extra_blocks)
49 static int sm_disk_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count)
57 static int sm_disk_get_nr_free(struct dm_space_map *sm, dm_block_t *count)
65 static int sm_disk_get_count(struct dm_space_map *sm, dm_block_t b,
72 static int sm_disk_count_is_more_than_one(struct dm_space_map *sm, dm_block_t b,
85 static int sm_disk_set_count(struct dm_space_map *sm, dm_block_t b,
125 static int sm_disk_inc_block(struct dm_space_map *sm, dm_block_t b)
142 static int sm_disk_dec_block(struct dm_space_map *sm, dm_block_t
[all...]
H A Ddm-transaction-manager.c23 dm_block_t where;
45 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b)
67 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b)
179 dm_block_t new_block;
203 static int __shadow_block(struct dm_transaction_manager *tm, dm_block_t orig,
208 dm_block_t new;
232 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig,
256 int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b,
272 void dm_tm_inc(struct dm_transaction_manager *tm, dm_block_t b)
283 void dm_tm_dec(struct dm_transaction_manager *tm, dm_block_t
[all...]
H A Ddm-btree-internal.h66 int ro_step(struct ro_spine *s, dm_block_t new_child);
75 dm_block_t root;
81 int shadow_step(struct shadow_spine *s, dm_block_t b,
H A Ddm-space-map-common.c231 int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks)
234 dm_block_t i, nr_blocks, nr_indexes;
272 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result)
275 dm_block_t index = b;
294 int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result)
314 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin,
315 dm_block_t end, dm_block_t *result)
319 dm_block_t i, index_begin = begin;
320 dm_block_t index_en
[all...]
H A Ddm-btree.c121 int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root)
186 static int push_frame(struct del_stack *s, dm_block_t b, unsigned level)
233 int dm_btree_del(struct dm_btree_info *info, dm_block_t root)
251 dm_block_t b;
297 static int btree_lookup_raw(struct ro_spine *s, dm_block_t block, uint64_t key,
327 int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root,
402 static int btree_split_sibling(struct shadow_spine *s, dm_block_t root,
574 static int btree_insert_raw(struct shadow_spine *s, dm_block_t root,
637 static int insert(struct dm_btree_info *info, dm_block_t root,
638 uint64_t *keys, void *value, dm_block_t *new_roo
[all...]
H A Ddm-btree-spine.c95 static int bn_read_lock(struct dm_btree_info *info, dm_block_t b,
101 static int bn_shadow(struct dm_btree_info *info, dm_block_t orig,
148 int ro_step(struct ro_spine *s, dm_block_t new_child)
198 int shadow_step(struct shadow_spine *s, dm_block_t b,
H A Ddm-block-manager.c307 static void report_recursive_bug(dm_block_t b, int r)
333 dm_block_t dm_block_location(struct dm_block *b)
395 dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm)
425 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
459 dm_block_t b, struct dm_block_validator *v,
492 dm_block_t b, struct dm_block_validator *v,
525 dm_block_t b, struct dm_block_validator *v,
568 int dm_bm_unlock_move(struct dm_block *b, dm_block_t n)
H A Ddm-btree-remove.c154 dm_block_t root;
420 dm_block_t b, uint32_t *result)
447 dm_block_t b = value64(n, 0);
505 struct dm_btree_value_type *vt, dm_block_t root,
553 int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,
554 uint64_t *keys, dm_block_t *new_root)

Completed in 205 milliseconds