Lines Matching refs:dentry

27 static int jffs2_create (struct inode *,struct dentry *,umode_t,
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 *);
33 static int jffs2_symlink (struct inode *,struct dentry *,const char *);
34 static int jffs2_mkdir (struct inode *,struct dentry *,umode_t);
35 static int jffs2_rmdir (struct inode *,struct dentry *);
36 static int jffs2_mknod (struct inode *,struct dentry *,umode_t,dev_t);
37 static int jffs2_rename (struct inode *, struct dentry *,
38 struct inode *, struct dentry *);
77 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target, in jffs2_lookup()
158 static int jffs2_create(struct inode *dir_i, struct dentry *dentry, in jffs2_create() argument
198 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create()
211 d_instantiate(dentry, inode); in jffs2_create()
223 static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry) in jffs2_unlink() argument
227 struct jffs2_inode_info *dead_f = JFFS2_INODE_INFO(d_inode(dentry)); in jffs2_unlink()
231 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink()
232 dentry->d_name.len, dead_f, now); in jffs2_unlink()
234 set_nlink(d_inode(dentry), dead_f->inocache->pino_nlink); in jffs2_unlink()
242 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
263 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link()
269 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
278 static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char *target) in jffs2_symlink() argument
306 namelen = dentry->d_name.len; in jffs2_symlink()
369 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink()
405 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_symlink()
407 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_symlink()
431 d_instantiate(dentry, inode); in jffs2_symlink()
440 static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, umode_t mode) in jffs2_mkdir() argument
464 namelen = dentry->d_name.len; in jffs2_mkdir()
513 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mkdir()
549 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_mkdir()
551 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mkdir()
576 d_instantiate(dentry, inode); in jffs2_mkdir()
584 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry) in jffs2_rmdir() argument
588 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry)); in jffs2_rmdir()
598 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_rmdir()
599 dentry->d_name.len, f, now); in jffs2_rmdir()
602 clear_nlink(d_inode(dentry)); in jffs2_rmdir()
608 static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, umode_t mode, dev_t rdev) in jffs2_mknod() argument
638 namelen = dentry->d_name.len; in jffs2_mknod()
686 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mknod()
725 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_mknod()
727 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mknod()
751 d_instantiate(dentry, inode); in jffs2_mknod()
759 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename()
760 struct inode *new_dir_i, struct dentry *new_dentry) in jffs2_rename()