Lines Matching refs:block_len
167 struct block_allocation *alloc, u32 *block_len) in inode_attach_direct_blocks() argument
169 int len = min(*block_len, EXT4_NDIR_BLOCKS); in inode_attach_direct_blocks()
181 *block_len -= len; in inode_attach_direct_blocks()
190 struct block_allocation *alloc, u32 *block_len) in inode_attach_indirect_blocks() argument
192 int len = min(*block_len, aux_info.blocks_per_ind); in inode_attach_indirect_blocks()
213 *block_len -= len; in inode_attach_indirect_blocks()
222 struct block_allocation *alloc, u32 *block_len) in inode_attach_dindirect_blocks() argument
224 int len = min(*block_len, aux_info.blocks_per_dind); in inode_attach_dindirect_blocks()
245 *block_len -= len; in inode_attach_dindirect_blocks()
254 struct block_allocation *alloc, u32 *block_len) in inode_attach_tindirect_blocks() argument
256 int len = min(*block_len, aux_info.blocks_per_tind); in inode_attach_tindirect_blocks()
277 *block_len -= len; in inode_attach_tindirect_blocks()
347 struct block_allocation *alloc, u32 block_len) in do_inode_attach_indirect() argument
349 u32 count = block_len; in do_inode_attach_indirect()
388 u32 block_len) in do_inode_allocate_indirect() argument
390 u32 indirect_len = indirect_blocks_needed(block_len); in do_inode_allocate_indirect()
392 struct block_allocation *alloc = allocate_blocks(block_len + indirect_len); in do_inode_allocate_indirect()
395 error("Failed to allocate %d blocks", block_len + indirect_len); in do_inode_allocate_indirect()
406 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_indirect() local
407 u32 indirect_len = indirect_blocks_needed(block_len); in inode_allocate_indirect()
409 alloc = do_inode_allocate_indirect(block_len); in inode_allocate_indirect()
415 reserve_all_indirect_blocks(alloc, block_len); in inode_allocate_indirect()
418 if (do_inode_attach_indirect(inode, alloc, block_len)) in inode_allocate_indirect()
422 inode->i_blocks_lo = (block_len + indirect_len) * info.block_size / 512; in inode_allocate_indirect()
431 u32 block_len = block_allocation_len(alloc); in inode_attach_resize() local
432 u32 superblocks = block_len / info.bg_desc_reserve_blocks; in inode_attach_resize()
437 if (block_len % info.bg_desc_reserve_blocks) in inode_attach_resize()
474 blocks = ((u64)block_len + 1) * info.block_size / 512; in inode_attach_resize()
492 u32 block_len = DIV_ROUND_UP(len, info.block_size); in inode_allocate_data_indirect() local
495 alloc = do_inode_allocate_indirect(block_len); in inode_allocate_data_indirect()
508 if (do_inode_attach_indirect(inode, alloc, block_len)) in inode_allocate_data_indirect()