Lines Matching refs:d_inode
123 struct inode *inode = filp->f_path.dentry->d_inode;
127 D1(printk(KERN_DEBUG "jffs2_readdir() for dir_i #%lu\n", filp->f_path.dentry->d_inode->i_ino));
248 struct jffs2_inode_info *dead_f = JFFS2_INODE_INFO(dentry->d_inode);
255 dentry->d_inode->i_nlink = dead_f->inocache->pino_nlink;
265 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_inode->i_sb);
266 struct jffs2_inode_info *f = JFFS2_INODE_INFO(old_dentry->d_inode);
276 if (S_ISDIR(old_dentry->d_inode->i_mode))
279 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12;
287 old_dentry->d_inode->i_nlink = ++f->inocache->pino_nlink;
289 d_instantiate(dentry, old_dentry->d_inode);
291 atomic_inc(&old_dentry->d_inode->i_count);
606 struct jffs2_inode_info *f = JFFS2_INODE_INFO(dentry->d_inode);
620 clear_nlink(dentry->d_inode);
790 if (new_dentry->d_inode) {
791 victim_f = JFFS2_INODE_INFO(new_dentry->d_inode);
792 if (S_ISDIR(new_dentry->d_inode->i_mode)) {
809 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12;
814 old_dentry->d_inode->i_ino, type,
822 drop_nlink(new_dentry->d_inode);
827 if (S_ISDIR(new_dentry->d_inode->i_mode))
837 if (S_ISDIR(old_dentry->d_inode->i_mode) && !victim_f)
848 struct jffs2_inode_info *f = JFFS2_INODE_INFO(old_dentry->d_inode);
850 inc_nlink(old_dentry->d_inode);
851 if (f->inocache && !S_ISDIR(old_dentry->d_inode->i_mode))
857 d_instantiate(new_dentry, old_dentry->d_inode);
858 atomic_inc(&old_dentry->d_inode->i_count);
863 if (S_ISDIR(old_dentry->d_inode->i_mode))