Lines Matching defs:len
40 u32 len;
43 len = min(region_len * info.block_size, backing_len);
45 sparse_file_add_data(ext4_sparse_file, ptr, len, region_block);
46 ptr += len;
47 backing_len -= len;
62 u32 len;
65 len = min(region_len * info.block_size, backing_len);
67 sparse_file_add_file(ext4_sparse_file, filename, offset, len,
69 offset += len;
70 backing_len -= len;
75 struct ext4_inode *inode, u64 len)
77 u32 block_len = DIV_ROUND_UP(len, info.block_size);
133 len);
167 inode->i_size_lo = len;
168 inode->i_size_high = len >> 32;
177 /* Allocates enough blocks to hold len bytes, with backing_len bytes in a data
180 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
186 alloc = do_inode_allocate_extents(inode, len);
188 error("failed to allocate extents for %"PRIu64" bytes", len);
203 /* Allocates enough blocks to hold len bytes, queues them to be written
205 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len,
210 alloc = do_inode_allocate_extents(inode, len);
212 error("failed to allocate extents for %"PRIu64" bytes", len);
216 extent_create_backing_file(alloc, len, filename);
221 /* Allocates enough blocks to hold len bytes and connects them to an inode */
222 void inode_allocate_extents(struct ext4_inode *inode, u64 len)
226 alloc = do_inode_allocate_extents(inode, len);
228 error("failed to allocate extents for %"PRIu64" bytes", len);