Searched refs:block_allocation (Results 1 – 6 of 6) sorted by relevance
/system/extras/ext4_utils/ |
D | allocate.h | 22 struct block_allocation; 27 struct block_allocation *allocate_blocks(u32 len); 28 int block_allocation_num_regions(struct block_allocation *alloc); 29 int block_allocation_len(struct block_allocation *alloc); 31 void reduce_allocation(struct block_allocation *alloc, u32 len); 32 u32 get_block(struct block_allocation *alloc, u32 block); 33 u32 get_oob_block(struct block_allocation *alloc, u32 block); 34 void get_next_region(struct block_allocation *alloc); 35 void get_region(struct block_allocation *alloc, u32 *block, u32 *len); 42 void free_alloc(struct block_allocation *alloc); [all …]
|
D | indirect.c | 29 static u8 *create_backing(struct block_allocation *alloc, in create_backing() 56 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() 69 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() 86 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block() 102 static void fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) in fill_indirect_block() 110 static void fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) in fill_dindirect_block() 139 static void fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) in fill_tindirect_block() 166 struct block_allocation *alloc, u32 *block_len) in inode_attach_direct_blocks() 189 struct block_allocation *alloc, u32 *block_len) in inode_attach_indirect_blocks() 220 struct block_allocation *alloc, u32 *block_len) in inode_attach_dindirect_blocks() [all …]
|
D | allocate.c | 32 struct block_allocation { struct 61 struct block_allocation *create_allocation() in create_allocation() 63 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() 120 static void dump_region_lists(struct block_allocation *alloc) { 130 void append_region(struct block_allocation *alloc, in append_region() 228 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation() 447 struct block_allocation *allocate_blocks(u32 len) in allocate_blocks() 454 struct block_allocation *alloc = create_allocation(); in allocate_blocks() 463 int block_allocation_num_regions(struct block_allocation *alloc) in block_allocation_num_regions() 474 int block_allocation_len(struct block_allocation *alloc) in block_allocation_len() [all …]
|
D | extent.c | 29 static u8 *extent_create_backing(struct block_allocation *alloc, in extent_create_backing() 55 static void extent_create_backing_file(struct block_allocation *alloc, in extent_create_backing_file() 73 static struct block_allocation *do_inode_allocate_extents( in do_inode_allocate_extents() 77 struct block_allocation *alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents() 181 struct block_allocation *alloc; in inode_allocate_data_extents() 206 struct block_allocation *alloc; in inode_allocate_file_extents() 222 struct block_allocation *alloc; in inode_allocate_extents()
|
D | indirect.h | 26 struct block_allocation *alloc);
|
D | ext4_utils.c | 265 struct block_allocation *reserve_inode_alloc = create_allocation(); in ext4_create_resize_inode()
|