Lines Matching full:offsets
23 static int block_to_path(struct inode *inode, long block, int offsets[DEPTH]) in block_to_path()
35 offsets[n++] = block; in block_to_path()
37 offsets[n++] = DIRECT; in block_to_path()
38 offsets[n++] = block; in block_to_path()
40 offsets[n++] = DIRECT+1; in block_to_path()
41 offsets[n++] = block >> ptrs_bits; in block_to_path()
42 offsets[n++] = block & (indirect_blocks - 1); in block_to_path()
44 offsets[n++] = DIRECT+2; in block_to_path()
45 offsets[n++] = block >> (ptrs_bits * 2); in block_to_path()
46 offsets[n++] = (block >> ptrs_bits) & (indirect_blocks - 1); in block_to_path()
47 offsets[n++] = block & (indirect_blocks - 1); in block_to_path()
90 int offsets[], in get_branch() argument
99 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
109 add_chain(++p, bh, (sysv_zone_t*)bh->b_data + *++offsets); in get_branch()
127 int *offsets, in alloc_branch() argument
151 branch[n].p = (sysv_zone_t*) bh->b_data + offsets[n]; in alloc_branch()
206 int offsets[DEPTH]; in get_block() local
211 int depth = block_to_path(inode, iblock, offsets); in get_block()
218 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
251 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
279 int offsets[], in find_shared() argument
287 for (k = depth; k > 1 && !offsets[k-1]; k--) in find_shared()
291 partial = get_branch(inode, k, offsets, chain, &err); in find_shared()
367 int offsets[DEPTH]; in sysv_truncate() local
385 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
390 free_data(inode, i_data+offsets[0], i_data + DIRECT); in sysv_truncate()
394 partial = find_shared(inode, n, offsets, chain, &nr); in sysv_truncate()