Lines Matching refs:dentry

28 		         struct dentry *, umode_t, bool);
29 static struct dentry *jffs2_lookup (struct inode *,struct dentry *,
31 static int jffs2_link (struct dentry *,struct inode *,struct dentry *);
32 static int jffs2_unlink (struct inode *,struct dentry *);
34 struct dentry *, const char *);
35 static int jffs2_mkdir (struct mnt_idmap *, struct inode *,struct dentry *,
37 static int jffs2_rmdir (struct inode *,struct dentry *);
38 static int jffs2_mknod (struct mnt_idmap *, struct inode *,struct dentry *,
41 struct dentry *, struct inode *, struct dentry *,
78 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
94 /* The 'nhash' on the fd_list is not the same as the dentry hash */
164 struct dentry *dentry, umode_t mode, bool excl)
203 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name);
216 d_instantiate_new(dentry, inode);
228 static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry)
232 struct jffs2_inode_info *dead_f = JFFS2_INODE_INFO(d_inode(dentry));
236 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name,
237 dentry->d_name.len, dead_f, now);
239 set_nlink(d_inode(dentry), dead_f->inocache->pino_nlink);
248 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry)
269 ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now);
275 d_instantiate(dentry, d_inode(old_dentry));
286 struct dentry *dentry, const char *target)
314 namelen = dentry->d_name.len;
378 ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
414 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
416 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
440 d_instantiate_new(dentry, inode);
450 struct dentry *dentry, umode_t mode)
474 namelen = dentry->d_name.len;
523 ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
559 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
561 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
586 d_instantiate_new(dentry, inode);
594 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry)
598 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry));
612 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name,
613 dentry->d_name.len, f, now);
617 clear_nlink(d_inode(dentry));
624 struct dentry *dentry, umode_t mode, dev_t rdev)
651 namelen = dentry->d_name.len;
699 ret = jffs2_init_security(inode, dir_i, &dentry->d_name);
738 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen));
740 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL);
764 d_instantiate_new(dentry, inode);
773 struct inode *old_dir_i, struct dentry *old_dentry,
774 struct inode *new_dir_i, struct dentry *new_dentry,
868 * For one thing, we can't afford dentry aliases for directories.