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()
370 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink()
406 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_symlink()
408 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_symlink()
432 d_instantiate(dentry, inode); in jffs2_symlink()
441 static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, umode_t mode) in jffs2_mkdir() argument
465 namelen = dentry->d_name.len; in jffs2_mkdir()
514 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mkdir()
550 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_mkdir()
552 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mkdir()
577 d_instantiate(dentry, inode); in jffs2_mkdir()
585 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry) in jffs2_rmdir() argument
589 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry)); in jffs2_rmdir()
599 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_rmdir()
600 dentry->d_name.len, f, now); in jffs2_rmdir()
603 clear_nlink(d_inode(dentry)); in jffs2_rmdir()
609 static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, umode_t mode, dev_t rdev) in jffs2_mknod() argument
636 namelen = dentry->d_name.len; in jffs2_mknod()
684 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mknod()
723 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_mknod()
725 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mknod()
749 d_instantiate(dentry, inode); in jffs2_mknod()
757 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename()
758 struct inode *new_dir_i, struct dentry *new_dentry) in jffs2_rename()