Home
last modified time | relevance | path

Searched refs:volume_index (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/md/dm-vdo/indexer/
H A Dvolume-index.h93 struct volume_index { struct
142 struct volume_index **volume_index);
144 void uds_free_volume_index(struct volume_index *volume_index);
150 unsigned int __must_check uds_get_volume_index_zone(const struct volume_index *volume_index,
153 bool __must_check uds_is_volume_index_sample(const struct volume_index *volume_index,
160 u64 __must_check uds_lookup_volume_index_name(const struct volume_index *volume_index,
163 int __must_check uds_get_volume_index_record(struct volume_index *volume_index,
175 void uds_set_volume_index_open_chapter(struct volume_index *volume_index,
178 void uds_set_volume_index_zone_open_chapter(struct volume_index *volume_index,
182 int __must_check uds_load_volume_index(struct volume_index *volume_index,
[all …]
H A Dvolume-index.c162 static inline bool has_sparse(const struct volume_index *volume_index) in has_sparse() argument
164 return volume_index->sparse_sample_rate > 0; in has_sparse()
167 bool uds_is_volume_index_sample(const struct volume_index *volume_index, in uds_is_volume_index_sample() argument
170 if (!has_sparse(volume_index)) in uds_is_volume_index_sample()
173 return (uds_extract_sampling_bytes(name) % volume_index->sparse_sample_rate) == 0; in uds_is_volume_index_sample()
177 get_volume_sub_index(const struct volume_index *volume_index, in get_volume_sub_index() argument
180 return (uds_is_volume_index_sample(volume_index, name) ? in get_volume_sub_index()
181 &volume_index->vi_hook : in get_volume_sub_index()
182 &volume_index->vi_non_hook); in get_volume_sub_index()
191 unsigned int uds_get_volume_index_zone(const struct volume_index *volume_index, in uds_get_volume_index_zone() argument
[all …]
H A Dindex.c129 virtual_chapter = uds_lookup_volume_index_name(index->volume_index, in triage_index_request()
268 uds_set_volume_index_zone_open_chapter(zone->index->volume_index, zone->id, in open_next_chapter()
419 result = uds_get_volume_index_record(zone->index->volume_index, in search_index_zone()
474 !uds_is_volume_index_sample(zone->index->volume_index, in search_index_zone()
525 result = uds_get_volume_index_record(zone->index->volume_index, in remove_from_index_zone()
872 !uds_is_volume_index_sample(index->volume_index, name)) { in replay_record()
880 result = uds_get_volume_index_record(index->volume_index, name, &record); in replay_record()
988 uds_set_volume_index_open_chapter(index->volume_index, virtual); in replay_chapter()
1060 uds_set_volume_index_open_chapter(index->volume_index, upto_virtual); in replay_volume()
1200 result = uds_make_volume_index(config, nonce, &index->volume_index); in uds_make_index()
[all …]
H A Dindex.h42 struct volume_index *volume_index; member
H A Dopen-chapter.c387 zone = uds_get_volume_index_zone(index->volume_index, in load_version20()