Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 13 of 13) sorted by relevance

/fs/minix/
Ditree_v2.c27 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path()
42 offsets[n++] = block; in block_to_path()
44 offsets[n++] = DIRCOUNT; in block_to_path()
45 offsets[n++] = block; in block_to_path()
47 offsets[n++] = DIRCOUNT + 1; in block_to_path()
48 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
49 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
52 offsets[n++] = DIRCOUNT + 2; in block_to_path()
53 offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb); in block_to_path()
54 offsets[n++] = (block / INDIRCOUNT(sb)) % INDIRCOUNT(sb); in block_to_path()
[all …]
Ditree_common.c32 int *offsets, in get_branch() argument
42 add_chain (chain, NULL, i_data(inode) + *offsets); in get_branch()
52 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch()
72 int *offsets, in alloc_branch() argument
91 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch()
150 int offsets[DEPTH]; in get_block() local
154 int depth = block_to_path(inode, block, offsets); in get_block()
160 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
191 err = alloc_branch(inode, left, offsets+(partial-chain), partial); in get_block()
219 int offsets[DEPTH], in find_shared()
[all …]
Ditree_v1.c25 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path()
38 offsets[n++] = block; in block_to_path()
40 offsets[n++] = 7; in block_to_path()
41 offsets[n++] = block; in block_to_path()
44 offsets[n++] = 8; in block_to_path()
45 offsets[n++] = block>>9; in block_to_path()
46 offsets[n++] = block & 511; in block_to_path()
/fs/sysv/
Ditree.c23 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()
[all …]
/fs/ext4/
Dindirect.c76 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()
[all …]
Dnamei.c279 struct dx_map_entry *offsets, int count, unsigned blocksize);
/fs/ext2/
Dinode.c164 long i_block, int offsets[4], int *boundary) in ext2_block_to_path()
178 offsets[n++] = i_block; in ext2_block_to_path()
181 offsets[n++] = EXT2_IND_BLOCK; in ext2_block_to_path()
182 offsets[n++] = i_block; in ext2_block_to_path()
185 offsets[n++] = EXT2_DIND_BLOCK; in ext2_block_to_path()
186 offsets[n++] = i_block >> ptrs_bits; in ext2_block_to_path()
187 offsets[n++] = i_block & (ptrs - 1); in ext2_block_to_path()
190 offsets[n++] = EXT2_TIND_BLOCK; in ext2_block_to_path()
191 offsets[n++] = i_block >> (ptrs_bits * 2); in ext2_block_to_path()
192 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ext2_block_to_path()
[all …]
/fs/ufs/
Dinode.c45 static int ufs_block_to_path(struct inode *inode, sector_t i_block, unsigned offsets[4]) in ufs_block_to_path()
58 offsets[n++] = i_block; in ufs_block_to_path()
60 offsets[n++] = UFS_IND_BLOCK; in ufs_block_to_path()
61 offsets[n++] = i_block; in ufs_block_to_path()
63 offsets[n++] = UFS_DIND_BLOCK; in ufs_block_to_path()
64 offsets[n++] = i_block >> ptrs_bits; in ufs_block_to_path()
65 offsets[n++] = i_block & (ptrs - 1); in ufs_block_to_path()
67 offsets[n++] = UFS_TIND_BLOCK; in ufs_block_to_path()
68 offsets[n++] = i_block >> (ptrs_bits * 2); in ufs_block_to_path()
69 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ufs_block_to_path()
[all …]
/fs/xfs/libxfs/
Dxfs_btree.h333 const short *offsets,/* table of field offsets */
Dxfs_ialloc.c2436 static const short offsets[] = { /* field starting offsets */ in xfs_ialloc_log_agi() local
2466 xfs_btree_offsets(fields, offsets, XFS_AGI_NUM_BITS_R1, in xfs_ialloc_log_agi()
2477 xfs_btree_offsets(fields, offsets, XFS_AGI_NUM_BITS_R2, in xfs_ialloc_log_agi()
Dxfs_btree.c782 const short *offsets, /* table of field offsets */ in xfs_btree_offsets() argument
796 *first = offsets[i]; in xfs_btree_offsets()
805 *last = offsets[i + 1] - 1; in xfs_btree_offsets()
Dxfs_alloc.c2397 static const short offsets[] = { in xfs_alloc_log_agf() local
2424 xfs_btree_offsets(fields, offsets, XFS_AGF_NUM_BITS, &first, &last); in xfs_alloc_log_agf()
/fs/befs/
DChangeLog234 uses befs_get_block() by way of befs_readpage() to find the disk offsets