Lines Matching refs:depth
143 static Indirect *ext4_get_branch(struct inode *inode, int depth, in ext4_get_branch() argument
157 while (--depth) { in ext4_get_branch()
525 int depth; in ext4_ind_map_blocks() local
532 depth = ext4_block_to_path(inode, map->m_lblk, offsets, in ext4_ind_map_blocks()
535 if (depth == 0) in ext4_ind_map_blocks()
538 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
542 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
548 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
585 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
618 map->m_pblk = le32_to_cpu(chain[depth-1].key); in ext4_ind_map_blocks()
624 partial = chain + depth - 1; /* the whole chain */ in ext4_ind_map_blocks()
874 static Indirect *ext4_find_shared(struct inode *inode, int depth, in ext4_find_shared() argument
883 for (k = depth; k > 1 && !offsets[k-1]; k--) in ext4_find_shared()
1095 __le32 *first, __le32 *last, int depth) in ext4_free_branches() argument
1103 if (depth--) { in ext4_free_branches()
1117 (unsigned long) nr, depth); in ext4_free_branches()
1139 depth); in ext4_free_branches()
1481 int depth = (chain+n-1) - partial; in ext4_ind_remove_space() local
1508 if (partial > chain && depth <= depth2) { in ext4_ind_remove_space()
1517 if (partial2 > chain2 && depth2 <= depth) { in ext4_ind_remove_space()