Lines Matching refs:offsets

289  *	ext3_block_to_path - parse the block number into array of offsets
292 * @offsets: array to store the offsets in
300 * return value is the path length and @offsets[n] is the offset of
320 long i_block, int offsets[4], int *boundary)
333 offsets[n++] = i_block;
336 offsets[n++] = EXT3_IND_BLOCK;
337 offsets[n++] = i_block;
340 offsets[n++] = EXT3_DIND_BLOCK;
341 offsets[n++] = i_block >> ptrs_bits;
342 offsets[n++] = i_block & (ptrs - 1);
345 offsets[n++] = EXT3_TIND_BLOCK;
346 offsets[n++] = i_block >> (ptrs_bits * 2);
347 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1);
348 offsets[n++] = i_block & (ptrs - 1);
362 * @offsets: offsets of pointers in inode/indirect blocks
387 static Indirect *ext3_get_branch(struct inode *inode, int depth, int *offsets,
396 add_chain (chain, NULL, EXT3_I(inode)->i_data + *offsets);
406 add_chain(++p, bh, (__le32*)bh->b_data + *++offsets);
604 * @offsets: offsets (in the blocks) to store the pointers to next.
626 int *offsets, Indirect *branch)
663 branch[n].p = (__le32 *) bh->b_data + offsets[n];
828 int offsets[4];
841 depth = ext3_block_to_path(inode,iblock,offsets,&blocks_to_boundary);
846 partial = ext3_get_branch(inode, depth, offsets, chain, &err);
903 partial = ext3_get_branch(inode, depth, offsets, chain, &err);
936 offsets + (partial - chain), partial);
1996 * @offsets: offsets of pointers in that branch (see ext3_block_to_path)
2028 int offsets[4], Indirect chain[4], __le32 *top)
2035 for (k = depth; k > 1 && !offsets[k-1]; k--)
2037 partial = ext3_get_branch(inode, k, offsets, chain, &err);
2381 int offsets[4];
2427 n = ext3_block_to_path(inode, last_block, offsets, NULL);
2459 ext3_free_data(handle, inode, NULL, i_data+offsets[0],
2464 partial = ext3_find_shared(inode, n, offsets, chain, &nr);
2495 switch (offsets[0]) {
3223 * start and end offsets in here as well we could do block_to_path() on each