Lines Matching refs:depth
142 static Indirect *ext4_get_branch(struct inode *inode, int depth, in ext4_get_branch() argument
156 while (--depth) { in ext4_get_branch()
524 int depth; in ext4_ind_map_blocks() local
531 depth = ext4_block_to_path(inode, map->m_lblk, offsets, in ext4_ind_map_blocks()
534 if (depth == 0) in ext4_ind_map_blocks()
537 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
541 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
547 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
583 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
616 map->m_pblk = le32_to_cpu(chain[depth-1].key); in ext4_ind_map_blocks()
622 partial = chain + depth - 1; /* the whole chain */ in ext4_ind_map_blocks()
872 static Indirect *ext4_find_shared(struct inode *inode, int depth, in ext4_find_shared() argument
881 for (k = depth; k > 1 && !offsets[k-1]; k--) in ext4_find_shared()
1093 __le32 *first, __le32 *last, int depth) in ext4_free_branches() argument
1101 if (depth--) { in ext4_free_branches()
1115 (unsigned long) nr, depth); in ext4_free_branches()
1137 depth); in ext4_free_branches()
1479 int depth = (chain+n-1) - partial; in ext4_ind_remove_space() local
1506 if (partial > chain && depth <= depth2) { in ext4_ind_remove_space()
1515 if (partial2 > chain2 && depth2 <= depth) { in ext4_ind_remove_space()