Lines Matching refs:depth
122 static u64 ufs_frag_map(struct inode *inode, unsigned offsets[4], int depth) in ufs_frag_map() argument
138 if (depth == 0) in ufs_frag_map()
151 while (--depth) { in ufs_frag_map()
175 while (--depth) { in ufs_frag_map()
400 int depth = ufs_block_to_path(inode, fragment >> uspi->s_fpbshift, offsets); in ufs_getfrag_block() local
405 phys64 = ufs_frag_map(inode, offsets, depth); in ufs_getfrag_block()
416 if (unlikely(!depth)) { in ufs_getfrag_block()
432 if (depth == 1) { in ufs_getfrag_block()
439 for (i = 1; i < depth - 1; i++) in ufs_getfrag_block()
442 phys64 = ufs_inode_getblock(inode, phys64, offsets[depth - 1], in ufs_getfrag_block()
965 static void free_full_branch(struct inode *inode, u64 ind_block, int depth) in free_full_branch() argument
975 if (--depth) { in free_full_branch()
980 free_full_branch(inode, block, depth); in free_full_branch()
998 …c void free_branch_tail(struct inode *inode, unsigned from, struct ufs_buffer_head *ubh, int depth) in free_branch_tail() argument
1004 if (--depth) { in free_branch_tail()
1013 free_full_branch(inode, block, depth); in free_branch_tail()
1113 int depth = ufs_block_to_path(inode, DIRECT_BLOCK, offsets); in __ufs_truncate_blocks() local
1120 if (!depth) in __ufs_truncate_blocks()
1124 for (depth2 = depth - 1; depth2; depth2--) in __ufs_truncate_blocks()
1129 if (depth == 1) { in __ufs_truncate_blocks()
1150 free_branch_tail(inode, offsets[i + 1], ubh[i], depth - i - 1); in __ufs_truncate_blocks()