Lines Matching refs:i_block

158 			if (inode->i_block[i])  in e2fsck_pass1_check_device_inode()
208 (inode->i_block[0] < fs->super->s_first_data_block) || in e2fsck_pass1_check_symlink()
209 (inode->i_block[0] >= ext2fs_blocks_count(fs->super))) in e2fsck_pass1_check_symlink()
213 if (inode->i_block[i]) in e2fsck_pass1_check_symlink()
216 if (io_channel_read_blk64(fs->io, inode->i_block[0], 1, buf)) in e2fsck_pass1_check_symlink()
223 if (inode->i_size >= sizeof(inode->i_block)) in e2fsck_pass1_check_symlink()
226 len = strnlen((char *)inode->i_block, sizeof(inode->i_block)); in e2fsck_pass1_check_symlink()
227 if (len == sizeof(inode->i_block)) in e2fsck_pass1_check_symlink()
418 LINUX_S_ISLNK(inode->i_mode) || inode->i_block[0] == 0) in check_is_really_dir()
449 blk = inode->i_block[i]; in check_is_really_dir()
461 blk = inode->i_block[0]; in check_is_really_dir()
780 if ((ext2fs_extent_header_verify(inode->i_block, in e2fsck_pass1()
781 sizeof(inode->i_block)) == 0) && in e2fsck_pass1()
814 tmp_block[i] = ext2fs_swab32(inode->i_block[i]); in e2fsck_pass1()
817 ehp = inode->i_block; in e2fsck_pass1()
820 sizeof(inode->i_block)) == 0) && in e2fsck_pass1()
824 memcpy(inode->i_block, tmp_block, in e2fsck_pass1()
825 sizeof(inode->i_block)); in e2fsck_pass1()
915 inode->i_blocks || inode->i_block[0]) && in e2fsck_pass1()
942 inode->i_blocks || inode->i_block[0]) && in e2fsck_pass1()
1129 if (inode->i_block[EXT2_IND_BLOCK]) in e2fsck_pass1()
1131 if (inode->i_block[EXT2_DIND_BLOCK]) in e2fsck_pass1()
1133 if (inode->i_block[EXT2_TIND_BLOCK]) in e2fsck_pass1()
1137 (inode->i_block[EXT2_IND_BLOCK] || in e2fsck_pass1()
1138 inode->i_block[EXT2_DIND_BLOCK] || in e2fsck_pass1()
1139 inode->i_block[EXT2_TIND_BLOCK] || in e2fsck_pass1()
1319 ret = (ib_a->inode.i_block[EXT2_IND_BLOCK] - in process_inode_cmp()
1320 ib_b->inode.i_block[EXT2_IND_BLOCK]); in process_inode_cmp()
2548 if ((blk == p->inode->i_block[EXT2_IND_BLOCK]) || in process_bad_block()
2549 (blk == p->inode->i_block[EXT2_DIND_BLOCK]) || in process_bad_block()
2550 (blk == p->inode->i_block[EXT2_TIND_BLOCK])) { in process_bad_block()
2789 blocks[i] = ctx->stashed_inode->i_block[i]; in pass1_get_blocks()