Lines Matching refs:alloc
30 static u8 *extent_create_backing(struct block_allocation *alloc,
38 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
42 get_region(alloc, ®ion_block, ®ion_len);
56 static void extent_create_backing_file(struct block_allocation *alloc,
60 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
64 get_region(alloc, ®ion_block, ®ion_len);
79 struct block_allocation *alloc = allocate_blocks(block_len + 1);
85 if (alloc == NULL) {
90 int allocation_len = block_allocation_num_regions(alloc);
92 reduce_allocation(alloc, 1);
94 reserve_oob_blocks(alloc, 1);
95 extent_block = get_oob_block(alloc, 0);
150 for (; !last_region(alloc); extent++, get_next_region(alloc)) {
154 get_region(alloc, ®ion_block, ®ion_len);
173 rewind_alloc(alloc);
175 return alloc;
184 struct block_allocation *alloc;
187 alloc = do_inode_allocate_extents(inode, len);
188 if (alloc == NULL) {
194 data = extent_create_backing(alloc, backing_len);
199 free_alloc(alloc);
209 struct block_allocation *alloc;
211 alloc = do_inode_allocate_extents(inode, len);
212 if (alloc == NULL) {
217 extent_create_backing_file(alloc, len, filename);
219 free_alloc(alloc);
225 struct block_allocation *alloc;
227 alloc = do_inode_allocate_extents(inode, len);
228 if (alloc == NULL) {
233 free_alloc(alloc);