Home | History | Annotate | Download | only in android

Lines Matching refs:allocator

40 	struct base_fs_allocator *allocator;
45 allocator = malloc(sizeof(*allocator));
46 if (!allocator)
55 allocator->cur_entry = NULL;
56 allocator->entries = entries;
58 /* Overhide the default allocator */
60 fs->priv_data = allocator;
65 free(allocator);
76 struct base_fs_allocator *allocator = fs->priv_data;
77 struct basefs_entry *e = allocator->cur_entry;
101 struct base_fs_allocator *allocator = fs->priv_data;
103 while ((e = hashmap_iter_in_order(allocator->entries, &it))) {
111 hashmap_free(allocator->entries);
112 free(allocator);
120 struct base_fs_allocator *allocator = fs->priv_data;
125 if (allocator)
126 allocator->cur_entry = hashmap_lookup(allocator->entries,
137 struct base_fs_allocator *allocator = fs->priv_data;
139 if (!allocator || !allocator->cur_entry || mode != S_IFREG)
142 fs_free_blocks_range(fs, allocator->cur_entry->head);
143 delete_block_ranges(allocator->cur_entry->head);
144 allocator->cur_entry->head = allocator->cur_entry->tail = NULL;
145 allocator->cur_entry = NULL;