• Home
  • Raw
  • Download

Lines Matching refs:alloc

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