Lines Matching refs:virtual_chapter

78 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()
294 static int handle_chapter_closed(struct index_zone *zone, u64 virtual_chapter) in handle_chapter_closed() argument
296 if (zone->newest_virtual_chapter == virtual_chapter) in handle_chapter_closed()
309 return uds_update_sparse_cache(zone, message->virtual_chapter); in dispatch_index_zone_control_request()
312 return handle_chapter_closed(zone, message->virtual_chapter); in dispatch_index_zone_control_request()
330 const struct index_zone *zone, u64 virtual_chapter) in set_chapter_location() argument
333 if (virtual_chapter == zone->newest_virtual_chapter) in set_chapter_location()
335 else if (is_zone_chapter_sparse(zone, virtual_chapter)) in set_chapter_location()
342 u64 virtual_chapter, bool *found) in search_sparse_cache_in_zone() argument
349 result = uds_search_sparse_cache(zone, &request->record_name, &virtual_chapter, in search_sparse_cache_in_zone()
351 if ((result != UDS_SUCCESS) || (virtual_chapter == NO_CHAPTER)) in search_sparse_cache_in_zone()
354 request->virtual_chapter = virtual_chapter; in search_sparse_cache_in_zone()
356 chapter = uds_map_to_physical_chapter(volume->geometry, virtual_chapter); in search_sparse_cache_in_zone()
374 if (request->virtual_chapter == zone->newest_virtual_chapter) { in get_record_from_zone()
381 (request->virtual_chapter == (zone->newest_virtual_chapter - 1)) && in get_record_from_zone()
389 if (is_zone_chapter_sparse(zone, request->virtual_chapter) && in get_record_from_zone()
390 uds_sparse_cache_contains(volume->sparse_cache, request->virtual_chapter, in get_record_from_zone()
393 request->virtual_chapter, found); in get_record_from_zone()
425 if (request->requeued && request->virtual_chapter != record.virtual_chapter) in search_index_zone()
428 request->virtual_chapter = record.virtual_chapter; in search_index_zone()
435 set_chapter_location(request, zone, record.virtual_chapter); in search_index_zone()
452 if (record.virtual_chapter != chapter) { in search_index_zone()
536 set_chapter_location(request, zone, record.virtual_chapter); in remove_from_index_zone()
541 if (request->requeued && request->virtual_chapter != record.virtual_chapter) in remove_from_index_zone()
544 request->virtual_chapter = record.virtual_chapter; in remove_from_index_zone()
555 set_chapter_location(request, zone, record.virtual_chapter); in remove_from_index_zone()
865 u64 virtual_chapter, bool will_be_sparse_chapter) in replay_record() argument
886 if (record.virtual_chapter == virtual_chapter) { in replay_record()
892 } else if (record.virtual_chapter == virtual_chapter) { in replay_record()
912 record.virtual_chapter, in replay_record()
926 result = uds_set_volume_index_record_chapter(&record, virtual_chapter); in replay_record()
934 result = uds_put_volume_index_record(&record, virtual_chapter); in replay_record()