Lines Matching refs:len
41 u32 len;
44 len = min(region_len * info.block_size, backing_len);
46 sparse_file_add_data(info.sparse_file, ptr, len, region_block);
47 ptr += len;
48 backing_len -= len;
63 u32 len;
66 len = min(region_len * info.block_size, backing_len);
68 sparse_file_add_file(info.sparse_file, filename, offset, len,
70 offset += len;
71 backing_len -= len;
76 struct ext4_inode *inode, u64 len)
78 u32 block_len = DIV_ROUND_UP(len, info.block_size);
134 len);
168 inode->i_size_lo = len;
169 inode->i_size_high = len >> 32;
178 /* Allocates enough blocks to hold len bytes, with backing_len bytes in a data
181 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
187 alloc = do_inode_allocate_extents(inode, len);
189 error("failed to allocate extents for %llu bytes", len);
204 /* Allocates enough blocks to hold len bytes, queues them to be written
206 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len,
211 alloc = do_inode_allocate_extents(inode, len);
213 error("failed to allocate extents for %llu bytes", len);
217 extent_create_backing_file(alloc, len, filename);
222 /* Allocates enough blocks to hold len bytes and connects them to an inode */
223 void inode_allocate_extents(struct ext4_inode *inode, u64 len)
227 alloc = do_inode_allocate_extents(inode, len);
229 error("failed to allocate extents for %llu bytes", len);