Lines Matching defs:inode
36 /* An inode on disk is considered free if both i_mode == 0 and i_nlink == 0. */
101 void sysv_free_inode(struct inode * inode)
103 struct super_block *sb = inode->i_sb;
110 sb = inode->i_sb;
111 ino = inode->i_ino;
113 printk("sysv_free_inode: inode 0,1,2 or nonexistent inode\n");
118 printk("sysv_free_inode: unable to read inode block on device "
119 "%s\n", inode->i_sb->s_id);
136 struct inode * sysv_new_inode(const struct inode * dir, umode_t mode)
140 struct inode *inode;
147 inode = new_inode(sb);
148 if (!inode)
156 iput(inode);
166 inode_init_owner(&nop_mnt_idmap, inode, dir, mode);
167 inode->i_ino = fs16_to_cpu(sbi, ino);
168 simple_inode_init_ts(inode);
169 inode->i_blocks = 0;
170 memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data));
171 SYSV_I(inode)->i_dir_start_lookup = 0;
172 insert_inode_hash(inode);
173 mark_inode_dirty(inode);
175 sysv_write_inode(inode, &wbc); /* ensure inode not allocated again */
176 mark_inode_dirty(inode); /* cleared by sysv_write_inode() */
179 return inode;
222 "free inode count was %d, correcting to %d\n",
231 printk("sysv_count_free_inodes: unable to read inode table\n");