Lines Matching refs:i_block
46 static int ufs_block_to_path(struct inode *inode, sector_t i_block, unsigned offsets[4]) in ufs_block_to_path() argument
58 if (i_block < direct_blocks) { in ufs_block_to_path()
59 offsets[n++] = i_block; in ufs_block_to_path()
60 } else if ((i_block -= direct_blocks) < indirect_blocks) { in ufs_block_to_path()
62 offsets[n++] = i_block; in ufs_block_to_path()
63 } else if ((i_block -= indirect_blocks) < double_blocks) { in ufs_block_to_path()
65 offsets[n++] = i_block >> ptrs_bits; in ufs_block_to_path()
66 offsets[n++] = i_block & (ptrs - 1); in ufs_block_to_path()
67 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ufs_block_to_path()
69 offsets[n++] = i_block >> (ptrs_bits * 2); in ufs_block_to_path()
70 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ufs_block_to_path()
71 offsets[n++] = i_block & (ptrs - 1); in ufs_block_to_path()