Home | History | Annotate | Download | only in misc

Lines Matching defs:cache

755 	struct ext2_qcow2_l2_cache *cache;
760 &cache);
767 cache->count = count;
768 cache->free = count;
769 cache->next_offset = image->l2_offset;
782 table->next = cache->free_head;
783 cache->free_head = table;
786 image->l2_cache = cache;
790 com_err(program_name, ret, _("while allocating l2 cache"));
796 struct ext2_qcow2_l2_cache *cache = image->l2_cache;
799 if (!cache)
802 table = cache->free_head;
803 cache->free_head = NULL;
812 if (cache->free != cache->count) {
814 "cache while putting the cache, data will "
816 table = cache->used_head;
817 cache->used_head = NULL;
821 ext2fs_free_mem(&cache);
958 struct ext2_qcow2_l2_cache *cache = img->l2_cache;
961 table = cache->used_head;
962 cache->used_head = table->next;
966 cache->used_tail = NULL;
970 table->next = cache->free_head;
971 cache->free_head = table;
973 cache->free++;
975 *l2_table = cache->used_head;
982 struct ext2_qcow2_l2_cache *cache = image->l2_cache;
983 struct ext2_qcow2_l2_table *table = cache->used_head;
990 while (cache->free < cache->count) {
1010 * Returns 1 if the cache is full, 0 otherwise.
1016 struct ext2_qcow2_l2_cache *cache = image->l2_cache;
1018 if (0 == cache->free)
1021 table = cache->free_head;
1023 cache->free_head = table->next;
1025 if (cache->used_tail)
1026 cache->used_tail->next = table;
1029 cache->used_head = table;
1031 cache->used_tail = table;
1032 cache->free--;
1040 struct ext2_qcow2_l2_cache *cache = img->l2_cache;
1041 struct ext2_qcow2_l2_table *table = cache->used_tail;
1053 table->offset = cache->next_offset;
1054 cache->next_offset = next;