Searched refs:open_chapter (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/md/dm-vdo/indexer/ |
H A D | open-chapter.c | 53 static inline size_t records_size(const struct open_chapter_zone *open_chapter) in records_size() argument 55 return sizeof(struct uds_volume_record) * (1 + open_chapter->capacity); in records_size() 67 struct open_chapter_zone *open_chapter; in uds_make_open_chapter() local 73 &open_chapter); in uds_make_open_chapter() 77 open_chapter->slot_count = slot_count; in uds_make_open_chapter() 78 open_chapter->capacity = capacity; in uds_make_open_chapter() 79 result = vdo_allocate_cache_aligned(records_size(open_chapter), "record pages", in uds_make_open_chapter() 80 &open_chapter->records); in uds_make_open_chapter() 82 uds_free_open_chapter(open_chapter); in uds_make_open_chapter() 86 *open_chapter_ptr = open_chapter; in uds_make_open_chapter() [all …]
|
H A D | open-chapter.h | 50 void uds_reset_open_chapter(struct open_chapter_zone *open_chapter); 52 void uds_search_open_chapter(struct open_chapter_zone *open_chapter, 56 int __must_check uds_put_open_chapter(struct open_chapter_zone *open_chapter, 60 void uds_remove_from_open_chapter(struct open_chapter_zone *open_chapter, 63 void uds_free_open_chapter(struct open_chapter_zone *open_chapter);
|
H A D | index.c | 205 swap(zone->open_chapter, zone->writing_chapter); in swap_open_chapter() 260 zone->open_chapter->size, in open_next_chapter() 261 zone->open_chapter->capacity - zone->open_chapter->size); in open_next_chapter() 270 uds_reset_open_chapter(zone->open_chapter); in open_next_chapter() 375 uds_search_open_chapter(zone->open_chapter, &request->record_name, in get_record_from_zone() 403 remaining = uds_put_open_chapter(zone->open_chapter, &request->record_name, in put_record_in_zone() 571 uds_remove_from_open_chapter(zone->open_chapter, &request->record_name); in remove_from_index_zone() 1116 uds_free_open_chapter(zone->open_chapter); in free_index_zone() 1131 &zone->open_chapter); in make_index_zone()
|
H A D | index.h | 30 struct open_chapter_zone *open_chapter; member
|
H A D | index-layout.c | 162 struct layout_region open_chapter; member 500 *lr++ = isl->open_chapter; in make_index_save_region_table() 894 result = open_region_writer(layout, &isl->open_chapter, &writer); in uds_discard_open_chapter() 924 result = open_region_reader(layout, &isl->open_chapter, &readers[0]); in uds_load_index_state() 1027 isl->open_chapter = (struct layout_region) { in instantiate_index_save_layout() 1087 result = open_region_writer(layout, &isl->open_chapter, &writers[0]); in uds_save_index_state() 1511 isl->open_chapter = table->regions[isl->zone_count + 2]; in reconstruct_index_save() 1512 result = verify_region(&isl->open_chapter, next_block, RL_KIND_OPEN_CHAPTER, in reconstruct_index_save() 1517 next_block += isl->open_chapter.block_count; in reconstruct_index_save()
|