Home
last modified time | relevance | path

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

/linux-6.1.9/fs/ext2/
Dinode.c164 long i_block, int offsets[4], int *boundary) in ext2_block_to_path() argument
174 if (i_block < 0) { in ext2_block_to_path()
177 } else if (i_block < direct_blocks) { in ext2_block_to_path()
178 offsets[n++] = i_block; in ext2_block_to_path()
180 } else if ( (i_block -= direct_blocks) < indirect_blocks) { in ext2_block_to_path()
182 offsets[n++] = i_block; in ext2_block_to_path()
184 } else if ((i_block -= indirect_blocks) < double_blocks) { 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()
189 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext2_block_to_path()
[all …]
Dext2.h324 __le32 i_block[EXT2_N_BLOCKS];/* Pointers to blocks */ member
/linux-6.1.9/Documentation/filesystems/ext4/
Dinlinedata.rst10 ``inode.i_block``. If the rest of the file would fit inside the extended
14 If the data size increases beyond i_block + ibody EA, a regular block
28 The first four bytes of i_block are the inode number of the parent
33 i_block and EA space are treated as separate dirent blocks; directory
Difork.rst3 The Contents of inode.i_block
7 storage in ``inode.i_block`` can be used in different ways. In general,
64 stored in ``inode.i_block``, which allows for the first four extents to
Dblockmap.rst4 | i.i_block Offset | Where It Points …
Dinodes.rst111 - i_block[EXT4_N_BLOCKS=15]
112 - Block map or extent tree. See the section “The Contents of inode.i_block”.
Dsuper.rst246 ``i_block[]`` array and ``i_size``.
267 - Backup copy of the journal inode's ``i_block[]`` array in the first 15
/linux-6.1.9/fs/ext4/
Dindirect.c75 ext4_lblk_t i_block, in ext4_block_to_path() argument
86 if (i_block < direct_blocks) { in ext4_block_to_path()
87 offsets[n++] = i_block; in ext4_block_to_path()
89 } else if ((i_block -= direct_blocks) < indirect_blocks) { in ext4_block_to_path()
91 offsets[n++] = i_block; in ext4_block_to_path()
93 } else if ((i_block -= indirect_blocks) < double_blocks) { 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()
98 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext4_block_to_path()
100 offsets[n++] = i_block >> (ptrs_bits * 2); in ext4_block_to_path()
[all …]
Dinline.c187 memcpy(buffer, (void *)(raw_inode->i_block), cp_len); in ext4_read_inline_data()
235 memcpy((void *)raw_inode->i_block + pos, buffer, cp_len); in ext4_write_inline_data()
303 memset((void *)ext4_raw_inode(&is.iloc)->i_block, in ext4_create_inline_data()
446 memset((void *)ext4_raw_inode(&is.iloc)->i_block, in ext4_destroy_inline_data_nolock()
1294 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_try_add_inline_entry()
1634 *parent_de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; in ext4_get_first_inline_block()
1663 de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; in ext4_try_create_inline_dir()
1696 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_find_inline_entry()
1745 if ((void *)de_del - ((void *)ext4_raw_inode(&iloc)->i_block) < in ext4_delete_inline_entry()
1747 inline_start = (void *)ext4_raw_inode(&iloc)->i_block + in ext4_delete_inline_entry()
[all …]
Dfast_commit.c1568 memcpy(raw_inode, raw_fc_inode, offsetof(struct ext4_inode, i_block)); in ext4_fc_replay_inode()
1572 eh = (struct ext4_extent_header *)(&raw_inode->i_block[0]); in ext4_fc_replay_inode()
1577 (sizeof(raw_inode->i_block) - in ext4_fc_replay_inode()
1582 memcpy(raw_inode->i_block, raw_fc_inode->i_block, in ext4_fc_replay_inode()
1583 sizeof(raw_inode->i_block)); in ext4_fc_replay_inode()
Dinode.c4413 raw_inode->i_block[0] = in ext4_fill_raw_inode()
4415 raw_inode->i_block[1] = 0; in ext4_fill_raw_inode()
4417 raw_inode->i_block[0] = 0; in ext4_fill_raw_inode()
4418 raw_inode->i_block[1] = in ext4_fill_raw_inode()
4420 raw_inode->i_block[2] = 0; in ext4_fill_raw_inode()
4424 raw_inode->i_block[block] = ei->i_data[block]; in ext4_fill_raw_inode()
4936 ei->i_data[block] = raw_inode->i_block[block]; in __ext4_iget()
5046 if (raw_inode->i_block[0]) in __ext4_iget()
5048 old_decode_dev(le32_to_cpu(raw_inode->i_block[0]))); in __ext4_iget()
5051 new_decode_dev(le32_to_cpu(raw_inode->i_block[1]))); in __ext4_iget()
Dext4.h817 __le32 i_block[EXT4_N_BLOCKS];/* Pointers to blocks */ member
/linux-6.1.9/fs/ufs/
Dinode.c46 static int ufs_block_to_path(struct inode *inode, sector_t i_block, unsigned 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 …]