Searched refs:block_allocation (Results 1 – 6 of 6) sorted by relevance
/system/extras/ext4_utils/ |
D | allocate.h | 26 struct block_allocation; 31 struct block_allocation *allocate_blocks(u32 len); 32 int block_allocation_num_regions(struct block_allocation *alloc); 33 int block_allocation_len(struct block_allocation *alloc); 36 void reduce_allocation(struct block_allocation *alloc, u32 len); 37 u32 get_block(struct block_allocation *alloc, u32 block); 38 u32 get_oob_block(struct block_allocation *alloc, u32 block); 39 void get_next_region(struct block_allocation *alloc); 40 void get_region(struct block_allocation *alloc, u32 *block, u32 *len); 49 void free_alloc(struct block_allocation *alloc); [all …]
|
D | indirect.c | 30 static u8 *create_backing(struct block_allocation *alloc, in create_backing() 57 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() 70 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() 87 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block() 103 static void fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) in fill_indirect_block() 111 static void fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) in fill_dindirect_block() 141 static void fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) in fill_tindirect_block() 169 struct block_allocation *alloc, u32 *block_len) in inode_attach_direct_blocks() 192 struct block_allocation *alloc, u32 *block_len) in inode_attach_indirect_blocks() 224 struct block_allocation *alloc, u32 *block_len) in inode_attach_dindirect_blocks() [all …]
|
D | allocate.c | 33 struct block_allocation { struct 69 struct block_allocation *create_allocation() in create_allocation() 71 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() 147 static void dump_region_lists(struct block_allocation *alloc) { 157 void append_region(struct block_allocation *alloc, in append_region() 257 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation() 478 struct block_allocation *allocate_blocks(u32 len) in allocate_blocks() 485 struct block_allocation *alloc = create_allocation(); in allocate_blocks() 494 int block_allocation_num_regions(struct block_allocation *alloc) in block_allocation_num_regions() 505 int block_allocation_len(struct block_allocation *alloc) in block_allocation_len() [all …]
|
D | extent.c | 30 static u8 *extent_create_backing(struct block_allocation *alloc, in extent_create_backing() 56 static void extent_create_backing_file(struct block_allocation *alloc, in extent_create_backing_file() 75 static struct block_allocation *do_inode_allocate_extents( in do_inode_allocate_extents() 79 struct block_allocation *alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents() 184 struct block_allocation *alloc; in inode_allocate_data_extents() 209 struct block_allocation *alloc; in inode_allocate_file_extents() 225 struct block_allocation *alloc; in inode_allocate_extents()
|
D | indirect.h | 26 struct block_allocation *alloc);
|
D | ext4_utils.c | 299 struct block_allocation *reserve_inode_alloc = create_allocation(); in ext4_create_resize_inode()
|