Lines Matching defs:dir_i
74 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
88 dir_f = JFFS2_INODE_INFO(dir_i);
89 c = JFFS2_SB_INFO(dir_i->i_sb);
106 inode = jffs2_iget(dir_i->i_sb, ino);
127 D1(printk(KERN_DEBUG "jffs2_readdir() for dir_i #%lu\n", filp->f_path.dentry->d_inode->i_ino));
178 static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode,
191 c = JFFS2_SB_INFO(dir_i->i_sb);
195 inode = jffs2_new_inode(dir_i, mode, ri);
209 dir_f = JFFS2_INODE_INFO(dir_i);
223 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime));
244 static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry)
246 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb);
247 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i);
257 dir_i->i_mtime = dir_i->i_ctime = ITIME(now);
263 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry)
267 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i);
290 dir_i->i_mtime = dir_i->i_ctime = ITIME(now);
298 static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char *target)
319 c = JFFS2_SB_INFO(dir_i->i_sb);
333 inode = jffs2_new_inode(dir_i, S_IFLNK | S_IRWXUGO, ri);
387 ret = jffs2_init_security(inode, dir_i);
408 dir_f = JFFS2_INODE_INFO(dir_i);
416 rd->pino = cpu_to_je32(dir_i->i_ino);
437 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime));
458 static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode)
477 c = JFFS2_SB_INFO(dir_i->i_sb);
491 inode = jffs2_new_inode(dir_i, mode, ri);
507 f->inocache->pino_nlink = dir_i->i_ino;
531 ret = jffs2_init_security(inode, dir_i);
552 dir_f = JFFS2_INODE_INFO(dir_i);
560 rd->pino = cpu_to_je32(dir_i->i_ino);
581 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime));
582 inc_nlink(dir_i);
602 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry)
604 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb);
605 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i);
619 dir_i->i_mtime = dir_i->i_ctime = ITIME(now);
621 drop_nlink(dir_i);
626 static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, dev_t rdev)
648 c = JFFS2_SB_INFO(dir_i->i_sb);
665 inode = jffs2_new_inode(dir_i, mode, ri);
704 ret = jffs2_init_security(inode, dir_i);
725 dir_f = JFFS2_INODE_INFO(dir_i);
733 rd->pino = cpu_to_je32(dir_i->i_ino);
756 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(rd->mctime));