Home
last modified time | relevance | path

Searched refs:i_block (Results 1 – 8 of 8) sorted by relevance

/linux-3.4.99/fs/ext2/
Dinode.c155 long i_block, int offsets[4], int *boundary) in ext2_block_to_path() argument
165 if (i_block < 0) { in ext2_block_to_path()
168 } else if (i_block < direct_blocks) { in ext2_block_to_path()
169 offsets[n++] = i_block; in ext2_block_to_path()
171 } else if ( (i_block -= direct_blocks) < indirect_blocks) { in ext2_block_to_path()
173 offsets[n++] = i_block; in ext2_block_to_path()
175 } else if ((i_block -= indirect_blocks) < double_blocks) { in ext2_block_to_path()
177 offsets[n++] = i_block >> ptrs_bits; in ext2_block_to_path()
178 offsets[n++] = i_block & (ptrs - 1); in ext2_block_to_path()
180 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext2_block_to_path()
[all …]
Dext2.h320 __le32 i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ member
/linux-3.4.99/fs/ext4/
Dindirect.c72 ext4_lblk_t i_block, in ext4_block_to_path() argument
83 if (i_block < direct_blocks) { in ext4_block_to_path()
84 offsets[n++] = i_block; in ext4_block_to_path()
86 } else if ((i_block -= direct_blocks) < indirect_blocks) { in ext4_block_to_path()
88 offsets[n++] = i_block; in ext4_block_to_path()
90 } else if ((i_block -= indirect_blocks) < double_blocks) { in ext4_block_to_path()
92 offsets[n++] = i_block >> ptrs_bits; in ext4_block_to_path()
93 offsets[n++] = i_block & (ptrs - 1); in ext4_block_to_path()
95 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext4_block_to_path()
97 offsets[n++] = i_block >> (ptrs_bits * 2); in ext4_block_to_path()
[all …]
Dinode.c3719 ei->i_data[block] = raw_inode->i_block[block]; in ext4_iget()
3821 if (raw_inode->i_block[0]) in ext4_iget()
3823 old_decode_dev(le32_to_cpu(raw_inode->i_block[0]))); in ext4_iget()
3826 new_decode_dev(le32_to_cpu(raw_inode->i_block[1]))); in ext4_iget()
3973 raw_inode->i_block[0] = in ext4_do_update_inode()
3975 raw_inode->i_block[1] = 0; in ext4_do_update_inode()
3977 raw_inode->i_block[0] = 0; in ext4_do_update_inode()
3978 raw_inode->i_block[1] = in ext4_do_update_inode()
3980 raw_inode->i_block[2] = 0; in ext4_do_update_inode()
3984 raw_inode->i_block[block] = ei->i_data[block]; in ext4_do_update_inode()
Dext4.h642 __le32 i_block[EXT4_N_BLOCKS];/* Pointers to blocks */ member
/linux-3.4.99/fs/ufs/
Dinode.c46 static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t offsets[4]) in ufs_block_to_path() argument
58 if (i_block < direct_blocks) { in ufs_block_to_path()
59 offsets[n++] = i_block; in ufs_block_to_path()
60 } else if ((i_block -= direct_blocks) < indirect_blocks) { in ufs_block_to_path()
62 offsets[n++] = i_block; in ufs_block_to_path()
63 } else if ((i_block -= indirect_blocks) < double_blocks) { in ufs_block_to_path()
65 offsets[n++] = i_block >> ptrs_bits; in ufs_block_to_path()
66 offsets[n++] = i_block & (ptrs - 1); in ufs_block_to_path()
67 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ufs_block_to_path()
69 offsets[n++] = i_block >> (ptrs_bits * 2); in ufs_block_to_path()
[all …]
/linux-3.4.99/fs/ext3/
Dinode.c342 long i_block, int offsets[4], int *boundary) in ext3_block_to_path() argument
352 if (i_block < 0) { in ext3_block_to_path()
354 } else if (i_block < direct_blocks) { in ext3_block_to_path()
355 offsets[n++] = i_block; in ext3_block_to_path()
357 } else if ( (i_block -= direct_blocks) < indirect_blocks) { in ext3_block_to_path()
359 offsets[n++] = i_block; in ext3_block_to_path()
361 } else if ((i_block -= indirect_blocks) < double_blocks) { in ext3_block_to_path()
363 offsets[n++] = i_block >> ptrs_bits; in ext3_block_to_path()
364 offsets[n++] = i_block & (ptrs - 1); in ext3_block_to_path()
366 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext3_block_to_path()
[all …]
Dext3.h281 __le32 i_block[EXT3_N_BLOCKS];/* Pointers to blocks */ member