Home
last modified time | relevance | path

Searched refs:virtual_chapter (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/md/dm-vdo/indexer/
H A Dindex.c78 static bool is_zone_chapter_sparse(const struct index_zone *zone, u64 virtual_chapter) in is_zone_chapter_sparse() argument
82 zone->newest_virtual_chapter, virtual_chapter); in is_zone_chapter_sparse()
104 static void enqueue_barrier_messages(struct uds_index *index, u64 virtual_chapter) in enqueue_barrier_messages() argument
108 .virtual_chapter = virtual_chapter, in enqueue_barrier_messages()
126 u64 virtual_chapter; in triage_index_request() local
129 virtual_chapter = uds_lookup_volume_index_name(index->volume_index, in triage_index_request()
131 if (virtual_chapter == NO_CHAPTER) in triage_index_request()
135 if (!is_zone_chapter_sparse(zone, virtual_chapter)) in triage_index_request()
143 return virtual_chapter; in triage_index_request()
235 .virtual_chapter = closed_chapter, in announce_chapter_closed()
[all …]
H A Dsparse-cache.c99 u64 virtual_chapter; in __aligned() local
222 chapter->virtual_chapter = NO_CHAPTER; in initialize_cached_chapter_index()
335 chapter->virtual_chapter = NO_CHAPTER; in release_cached_chapter_index()
389 bool uds_sparse_cache_contains(struct sparse_cache *cache, u64 virtual_chapter, in uds_sparse_cache_contains() argument
407 if (virtual_chapter == chapter->virtual_chapter) { in uds_sparse_cache_contains()
442 if ((chapter->virtual_chapter < oldest_virtual_chapter) || in purge_search_list()
443 (chapter->virtual_chapter == NO_CHAPTER)) in purge_search_list()
459 u64 virtual_chapter, in cache_chapter_index() argument
466 result = uds_read_chapter_index_from_volume(volume, virtual_chapter, in cache_chapter_index()
473 chapter->virtual_chapter = virtual_chapter; in cache_chapter_index()
[all …]
H A Dvolume-index.c148 u64 virtual_chapter) in convert_virtual_to_index() argument
150 return virtual_chapter & sub_index->chapter_mask; in convert_virtual_to_index()
154 u64 virtual_chapter) in is_virtual_chapter_indexed() argument
158 return ((virtual_chapter >= volume_index_zone->virtual_chapter_low) && in is_virtual_chapter_indexed()
159 (virtual_chapter <= volume_index_zone->virtual_chapter_high)); in is_virtual_chapter_indexed()
524 record->virtual_chapter = convert_index_to_virtual(record, index_chapter); in get_volume_sub_index_record()
561 int uds_put_volume_index_record(struct volume_index_record *record, u64 virtual_chapter) in uds_put_volume_index_record() argument
567 if (!is_virtual_chapter_indexed(record, virtual_chapter)) { in uds_put_volume_index_record()
573 (unsigned long long) virtual_chapter, in uds_put_volume_index_record()
582 virtual_chapter), in uds_put_volume_index_record()
[all …]
H A Dgeometry.c128 u64 virtual_chapter) in uds_map_to_physical_chapter() argument
133 return virtual_chapter % geometry->chapters_per_volume; in uds_map_to_physical_chapter()
135 if (likely(virtual_chapter > geometry->remapped_virtual)) { in uds_map_to_physical_chapter()
136 delta = virtual_chapter - geometry->remapped_virtual; in uds_map_to_physical_chapter()
143 if (virtual_chapter == geometry->remapped_virtual) in uds_map_to_physical_chapter()
146 delta = geometry->remapped_virtual - virtual_chapter; in uds_map_to_physical_chapter()
H A Dvolume-index.h120 u64 virtual_chapter; member
168 u64 virtual_chapter);
173 u64 virtual_chapter);
176 u64 virtual_chapter);
180 u64 virtual_chapter);
H A Dsparse-cache.h35 bool uds_sparse_cache_contains(struct sparse_cache *cache, u64 virtual_chapter,
38 int __must_check uds_update_sparse_cache(struct index_zone *zone, u64 virtual_chapter);
H A Dvolume.h145 u64 virtual_chapter,
161 u64 virtual_chapter,
H A Dindexer.h228 u64 virtual_chapter; member
281 u64 virtual_chapter; member
H A Dvolume.c932 int uds_read_chapter_index_from_volume(const struct volume *volume, u64 virtual_chapter, in uds_read_chapter_index_from_volume() argument
939 u32 physical_chapter = uds_map_to_physical_chapter(geometry, virtual_chapter); in uds_read_chapter_index_from_volume()
970 uds_map_to_physical_chapter(volume->geometry, request->virtual_chapter); in uds_search_volume_page_cache()
994 u64 virtual_chapter, bool *found) in uds_search_volume_page_cache_for_rebuild() argument
999 u32 physical_chapter = uds_map_to_physical_chapter(geometry, virtual_chapter); in uds_search_volume_page_cache_for_rebuild()
1047 void uds_forget_chapter(struct volume *volume, u64 virtual_chapter) in uds_forget_chapter() argument
1050 uds_map_to_physical_chapter(volume->geometry, virtual_chapter); in uds_forget_chapter()
1054 vdo_log_debug("forgetting chapter %llu", (unsigned long long) virtual_chapter); in uds_forget_chapter()
H A Dgeometry.h110 u64 virtual_chapter);