Lines Matching full:offsets

24 static int block_to_path(struct inode *inode, long block, int offsets[DEPTH])  in block_to_path()
36 offsets[n++] = block; in block_to_path()
38 offsets[n++] = DIRECT; in block_to_path()
39 offsets[n++] = block; in block_to_path()
41 offsets[n++] = DIRECT+1; in block_to_path()
42 offsets[n++] = block >> ptrs_bits; in block_to_path()
43 offsets[n++] = block & (indirect_blocks - 1); in block_to_path()
45 offsets[n++] = DIRECT+2; in block_to_path()
46 offsets[n++] = block >> (ptrs_bits * 2); in block_to_path()
47 offsets[n++] = (block >> ptrs_bits) & (indirect_blocks - 1); in block_to_path()
48 offsets[n++] = block & (indirect_blocks - 1); in block_to_path()
88 int offsets[], in get_branch() argument
97 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
108 add_chain(++p, bh, (sysv_zone_t*)bh->b_data + *++offsets); in get_branch()
128 int *offsets, in alloc_branch() argument
156 branch[n].p = (sysv_zone_t*) bh->b_data + offsets[n]; in alloc_branch()
211 int offsets[DEPTH]; in get_block() local
216 int depth = block_to_path(inode, iblock, offsets); in get_block()
222 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
254 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
282 int offsets[], in find_shared() argument
290 for (k = depth; k > 1 && !offsets[k-1]; k--) in find_shared()
292 partial = get_branch(inode, k, offsets, chain, &err); in find_shared()
370 int offsets[DEPTH]; in sysv_truncate() local
388 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
393 free_data(inode, i_data+offsets[0], i_data + DIRECT); in sysv_truncate()
397 partial = find_shared(inode, n, offsets, chain, &nr); in sysv_truncate()