Lines Matching refs:old_dentry
246 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
248 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link()
249 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link()
259 if (d_is_dir(old_dentry)) in jffs2_link()
263 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
271 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link()
273 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
275 ihold(d_inode(old_dentry)); in jffs2_link()
766 struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
808 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
813 d_inode(old_dentry)->i_ino, type, in jffs2_rename()
839 if (d_is_dir(old_dentry) && !victim_f) in jffs2_rename()
844 old_dentry->d_name.name, old_dentry->d_name.len, NULL, now); in jffs2_rename()
850 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_rename()
852 inc_nlink(d_inode(old_dentry)); in jffs2_rename()
853 if (f->inocache && !d_is_dir(old_dentry)) in jffs2_rename()
871 if (d_is_dir(old_dentry)) in jffs2_rename()