Home
last modified time | relevance | path

Searched refs:block_allocation (Results 1 – 11 of 11) sorted by relevance

/system/extras/ext4_utils/
Dallocate.h39 struct block_allocation { struct
43 struct block_allocation* next; argument
68 struct block_allocation *allocate_blocks(u32 len);
69 int block_allocation_num_regions(struct block_allocation *alloc);
70 int block_allocation_len(struct block_allocation *alloc);
73 void reduce_allocation(struct block_allocation *alloc, u32 len);
74 u32 get_block(struct block_allocation *alloc, u32 block);
75 u32 get_oob_block(struct block_allocation *alloc, u32 block);
76 void get_next_region(struct block_allocation *alloc);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
[all …]
Dindirect.c28 static u8 *create_backing(struct block_allocation *alloc, in create_backing()
55 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block()
68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block()
85 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block()
101 static void fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) in fill_indirect_block()
109 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()
167 struct block_allocation *alloc, u32 *block_len) in inode_attach_direct_blocks()
190 struct block_allocation *alloc, u32 *block_len) in inode_attach_indirect_blocks()
222 struct block_allocation *alloc, u32 *block_len) in inode_attach_dindirect_blocks()
[all …]
Dextent.c29 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()
74 static struct block_allocation *do_inode_allocate_extents( in do_inode_allocate_extents()
75 struct ext4_inode *inode, u64 len, struct block_allocation *prealloc) in do_inode_allocate_extents()
78 struct block_allocation *alloc; in do_inode_allocate_extents()
203 struct block_allocation *alloc; in inode_allocate_data_extents()
225 struct block_allocation* inode_allocate_file_extents(struct ext4_inode *inode, u64 len, in inode_allocate_file_extents()
228 struct block_allocation *alloc, *prealloc = base_fs_allocations, *prev_prealloc = NULL; in inode_allocate_file_extents()
260 struct block_allocation *alloc; in inode_allocate_extents()
Dallocate.c31 struct block_allocation *create_allocation() in create_allocation()
33 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation()
123 static void dump_region_lists(struct block_allocation *alloc) {
133 void print_blocks(FILE* f, struct block_allocation *alloc, char separator) in print_blocks()
148 void append_region(struct block_allocation *alloc, in append_region()
241 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation()
343 struct block_allocation *blk_alloc = allocate_blocks(1); in allocate_block()
448 struct block_allocation *allocate_blocks(u32 len) in allocate_blocks()
455 struct block_allocation *alloc = create_allocation(); in allocate_blocks()
466 int block_allocation_num_regions(struct block_allocation *alloc) in block_allocation_num_regions()
[all …]
Dindirect.h26 struct block_allocation *alloc);
Dextent.h24 struct block_allocation* inode_allocate_file_extents(
Dmake_ext4fs.c555 struct block_allocation *fs_alloc; in extract_base_fs_allocations()
663 struct block_allocation* p) in generate_base_alloc_file_out()
676 struct block_allocation* pn = p->next; in generate_base_alloc_file_out()
692 struct block_allocation* p; in make_ext4fs_internal()
841 struct block_allocation* p = get_saved_allocation_chain(); in make_ext4fs_internal()
850 struct block_allocation* pn = p->next; in make_ext4fs_internal()
856 struct block_allocation* p = get_saved_allocation_chain(); in make_ext4fs_internal()
877 struct block_allocation* pn = p->next; in make_ext4fs_internal()
Dcontents.h43 struct block_allocation* get_saved_allocation_chain();
Dcontents.c41 static struct block_allocation* saved_allocation_head = NULL;
43 struct block_allocation* get_saved_allocation_chain() { in get_saved_allocation_chain()
196 struct block_allocation* alloc = inode_allocate_file_extents(inode, len, filename); in make_file()
Dext4_utils.h122 extern struct block_allocation *base_fs_allocations;
Dext4_utils.c52 struct block_allocation *base_fs_allocations = NULL;
426 struct block_allocation *reserve_inode_alloc = create_allocation(); in ext4_create_resize_inode()