Lines Matching refs:len
40 u32 len; in extent_create_backing() local
43 len = min(region_len * info.block_size, backing_len); in extent_create_backing()
45 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block); in extent_create_backing()
46 ptr += len; in extent_create_backing()
47 backing_len -= len; in extent_create_backing()
62 u32 len; in extent_create_backing_file() local
65 len = min(region_len * info.block_size, backing_len); in extent_create_backing_file()
67 sparse_file_add_file(ext4_sparse_file, filename, offset, len, in extent_create_backing_file()
69 offset += len; in extent_create_backing_file()
70 backing_len -= len; in extent_create_backing_file()
75 struct ext4_inode *inode, u64 len) in do_inode_allocate_extents() argument
77 u32 block_len = DIV_ROUND_UP(len, info.block_size); in do_inode_allocate_extents()
133 len); in do_inode_allocate_extents()
167 inode->i_size_lo = len; in do_inode_allocate_extents()
168 inode->i_size_high = len >> 32; in do_inode_allocate_extents()
180 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len, in inode_allocate_data_extents() argument
186 alloc = do_inode_allocate_extents(inode, len); in inode_allocate_data_extents()
188 error("failed to allocate extents for %"PRIu64" bytes", len); in inode_allocate_data_extents()
205 struct block_allocation* inode_allocate_file_extents(struct ext4_inode *inode, u64 len, in inode_allocate_file_extents() argument
210 alloc = do_inode_allocate_extents(inode, len); in inode_allocate_file_extents()
212 error("failed to allocate extents for %"PRIu64" bytes", len); in inode_allocate_file_extents()
216 extent_create_backing_file(alloc, len, filename); in inode_allocate_file_extents()
221 void inode_allocate_extents(struct ext4_inode *inode, u64 len) in inode_allocate_extents() argument
225 alloc = do_inode_allocate_extents(inode, len); in inode_allocate_extents()
227 error("failed to allocate extents for %"PRIu64" bytes", len); in inode_allocate_extents()