Lines Matching defs:inode
21 * This routine is called when an inode is not connected to the
28 struct ext2_inode *inode)
36 e2fsck_read_inode_full(ctx, i, inode,EXT2_INODE_SIZE(fs->super),
38 extra_size = ((struct ext2_inode_large *)inode)->i_extra_isize;
40 e2fsck_read_inode(ctx, i, inode, "pass4: disconnect_inode");
44 pctx.inode = inode;
47 eamagic = *(__u32 *)(((char *)inode) +EXT2_GOOD_OLD_INODE_SIZE +
55 if (!inode->i_blocks && eamagic != EXT2_EXT_ATTR_MAGIC &&
56 (LINUX_S_ISREG(inode->i_mode) || LINUX_S_ISDIR(inode->i_mode))) {
58 e2fsck_clear_inode(ctx, i, inode, 0,
65 LINUX_S_ISDIR(inode->i_mode));
78 * If we don't attach the inode, then skip the
93 struct ext2_inode *inode;
119 inode = e2fsck_allocate_memory(ctx, EXT2_INODE_SIZE(fs->super),
120 "scratch inode");
151 if (disconnect_inode(ctx, i, inode))
161 e2fsck_read_inode(ctx, i, inode, "pass4");
163 pctx.inode = inode;
164 if ((link_count != inode->i_links_count) && !isdir &&
165 (inode->i_links_count <= EXT2_LINK_MAX)) {
174 (inode->i_flags & EXT2_INDEX_FL) &&
177 inode->i_links_count = link_counted;
178 e2fsck_write_inode(ctx, i, inode, "pass4");
192 ext2fs_free_mem(&inode);