Lines Matching full:offsets

44  *	ext4_block_to_path - parse the block number into array of offsets
47 * @offsets: array to store the offsets in
55 * return value is the path length and @offsets[n] is the offset of
76 ext4_lblk_t offsets[4], int *boundary) in ext4_block_to_path()
87 offsets[n++] = i_block; in ext4_block_to_path()
90 offsets[n++] = EXT4_IND_BLOCK; in ext4_block_to_path()
91 offsets[n++] = i_block; in ext4_block_to_path()
94 offsets[n++] = EXT4_DIND_BLOCK; in ext4_block_to_path()
95 offsets[n++] = i_block >> ptrs_bits; in ext4_block_to_path()
96 offsets[n++] = i_block & (ptrs - 1); in ext4_block_to_path()
99 offsets[n++] = EXT4_TIND_BLOCK; in ext4_block_to_path()
100 offsets[n++] = i_block >> (ptrs_bits * 2); in ext4_block_to_path()
101 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ext4_block_to_path()
102 offsets[n++] = i_block & (ptrs - 1); in ext4_block_to_path()
118 * @offsets: offsets of pointers in inode/indirect blocks
145 ext4_lblk_t *offsets, in ext4_get_branch() argument
156 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
184 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch()
308 * @offsets: offsets (in the blocks) to store the pointers to next.
330 int indirect_blks, ext4_lblk_t *offsets, in ext4_alloc_branch() argument
372 p = branch[i].p = (__le32 *) bh->b_data + offsets[i]; in ext4_alloc_branch()
536 ext4_lblk_t offsets[4]; in ext4_ind_map_blocks() local
548 depth = ext4_block_to_path(inode, map->m_lblk, offsets, in ext4_ind_map_blocks()
554 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
587 count = count * epb + (epb - offsets[i] - 1); in ext4_ind_map_blocks()
636 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
766 * @offsets: offsets of pointers in that branch (see ext4_block_to_path)
798 ext4_lblk_t offsets[4], Indirect chain[4], in ext4_find_shared()
806 for (k = depth; k > 1 && !offsets[k-1]; k--) in ext4_find_shared()
808 partial = ext4_get_branch(inode, k, offsets, chain, &err); in ext4_find_shared()
1117 ext4_lblk_t offsets[4]; in ext4_ind_truncate() local
1131 n = ext4_block_to_path(inode, last_block, offsets, NULL); in ext4_ind_truncate()
1154 ext4_free_data(handle, inode, NULL, i_data+offsets[0], in ext4_ind_truncate()
1159 partial = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_truncate()
1190 switch (offsets[0]) { in ext4_ind_truncate()
1233 ext4_lblk_t offsets[4], offsets2[4]; in ext4_ind_remove_space() local
1249 n = ext4_block_to_path(inode, start, offsets, NULL); in ext4_ind_remove_space()
1256 ext4_free_data(handle, inode, NULL, i_data + offsets[0], in ext4_ind_remove_space()
1272 ext4_free_data(handle, inode, NULL, i_data + offsets[0], in ext4_ind_remove_space()
1278 partial = p = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1343 partial = p = ext4_find_shared(inode, n, offsets, chain, &nr); in ext4_ind_remove_space()
1353 if (offsets[i] != offsets2[i]) { in ext4_ind_remove_space()
1442 switch (offsets[0]) { in ext4_ind_remove_space()