Lines Matching refs:depth
125 static u64 ufs_frag_map(struct inode *inode, unsigned offsets[4], int depth) in ufs_frag_map() argument
141 if (depth == 0) in ufs_frag_map()
154 while (--depth) { in ufs_frag_map()
178 while (--depth) { in ufs_frag_map()
381 int depth = ufs_block_to_path(inode, fragment >> uspi->s_fpbshift, offsets); in ufs_getfrag_block() local
385 phys64 = ufs_frag_map(inode, offsets, depth); in ufs_getfrag_block()
404 if (unlikely(!depth)) { in ufs_getfrag_block()
420 if (depth == 1) { in ufs_getfrag_block()
427 for (i = 1; i < depth - 1; i++) in ufs_getfrag_block()
430 phys64 = ufs_inode_getblock(inode, phys64, offsets[depth - 1], in ufs_getfrag_block()
962 static void free_full_branch(struct inode *inode, u64 ind_block, int depth) in free_full_branch() argument
972 if (--depth) { in free_full_branch()
977 free_full_branch(inode, block, depth); in free_full_branch()
995 …c void free_branch_tail(struct inode *inode, unsigned from, struct ufs_buffer_head *ubh, int depth) in free_branch_tail() argument
1001 if (--depth) { in free_branch_tail()
1010 free_full_branch(inode, block, depth); in free_branch_tail()
1108 int depth; in ufs_truncate_blocks() local
1117 depth = ufs_block_to_path(inode, last, offsets); in ufs_truncate_blocks()
1118 if (!depth) in ufs_truncate_blocks()
1121 depth = 1; in ufs_truncate_blocks()
1124 for (depth2 = depth - 1; depth2; depth2--) in ufs_truncate_blocks()
1129 if (depth == 1) { in ufs_truncate_blocks()
1149 free_branch_tail(inode, offsets[i + 1], ubh[i], depth - i - 1); in ufs_truncate_blocks()