Home | History | Annotate | Download | only in misc

Lines Matching refs:table

255 			_("while writing inode table"));
420 * Mark the blocks used for the inode table
758 _("while allocating l1 table"));
769 struct ext2_qcow2_l2_table *table;
786 sizeof(struct ext2_qcow2_l2_table), &table);
791 sizeof(__u64), &table->data);
795 table->next = cache->free_head;
796 cache->free_head = table;
810 struct ext2_qcow2_l2_table *tmp, *table;
815 table = cache->free_head;
818 while (table) {
819 tmp = table;
820 table = table->next;
830 table = cache->used_head;
847 * One refcount block addresses 2048 clusters, one refcount table
862 /* Allocate refcount table */
913 /* Make space for L1 table */
966 * Put table from used list (used_head) into free list (free_head).
967 * l2_table is used to return pointer to the next used table (used_head).
973 struct ext2_qcow2_l2_table *table;
975 table = cache->used_head;
976 cache->used_head = table->next;
978 assert(table);
979 if (!table->next)
982 /* Clean the table for case we will need to use it again */
983 memset(table->data, 0, img->cluster_size);
984 table->next = cache->free_head;
985 cache->free_head = table;
997 struct ext2_qcow2_l2_table *table = cache->used_head;
1003 assert(table);
1005 if (seek != table->offset) {
1006 seek_set(fd, table->offset);
1007 seek = table->offset;
1010 generic_write(fd, (char *)table->data, image->cluster_size,
1012 put_used_table(image, &table);
1021 * Get first free table (from free_head) and put it into tail of used list
1023 * l2_table is used to return pointer to moved table.
1029 struct ext2_qcow2_l2_table *table;
1035 table = cache->free_head;
1036 assert(table);
1037 cache->free_head = table->next;
1040 cache->used_tail->next = table;
1043 cache->used_head = table;
1045 cache->used_tail = table;
1048 *l2_table = table;
1055 struct ext2_qcow2_l2_table *table = cache->used_tail;
1061 * Need to create new table if it does not exist,
1064 if (!table || (table->l1_index != l1_index)) {
1065 get_free_table(img, &table);
1066 table->l1_index = l1_index;
1067 table->offset = cache->next_offset;
1070 ext2fs_cpu_to_be64(table->offset | QCOW_OFLAG_COPIED);
1074 table->data[l2_index] = ext2fs_cpu_to_be64(data | QCOW_OFLAG_COPIED);
1090 * another item in the refcount table
1430 _("while restoring the image table"));