Lines Matching refs:dir_i

78 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,  in jffs2_lookup()  argument
92 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_lookup()
112 inode = jffs2_iget(dir_i->i_sb, ino); in jffs2_lookup()
163 static int jffs2_create(struct mnt_idmap *idmap, struct inode *dir_i, in jffs2_create() argument
176 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_create()
180 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_create()
194 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_create()
207 inode_set_mtime_to_ts(dir_i, in jffs2_create()
208 inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(ri->ctime)))); in jffs2_create()
228 static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry) in jffs2_unlink() argument
230 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_unlink()
231 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_unlink()
241 inode_set_mtime_to_ts(dir_i, in jffs2_unlink()
242 inode_set_ctime_to_ts(dir_i, ITIME(now))); in jffs2_unlink()
248 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
252 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_link()
276 inode_set_mtime_to_ts(dir_i, in jffs2_link()
277 inode_set_ctime_to_ts(dir_i, ITIME(now))); in jffs2_link()
285 static int jffs2_symlink (struct mnt_idmap *idmap, struct inode *dir_i, in jffs2_symlink() argument
309 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_symlink()
323 inode = jffs2_new_inode(dir_i, S_IFLNK | S_IRWXUGO, ri); in jffs2_symlink()
378 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink()
399 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_symlink()
407 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_symlink()
428 inode_set_mtime_to_ts(dir_i, in jffs2_symlink()
429 inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime)))); in jffs2_symlink()
449 static int jffs2_mkdir (struct mnt_idmap *idmap, struct inode *dir_i, in jffs2_mkdir() argument
469 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_mkdir()
483 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_mkdir()
499 f->inocache->pino_nlink = dir_i->i_ino; in jffs2_mkdir()
523 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mkdir()
544 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mkdir()
552 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_mkdir()
573 inode_set_mtime_to_ts(dir_i, in jffs2_mkdir()
574 inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime)))); in jffs2_mkdir()
575 inc_nlink(dir_i); in jffs2_mkdir()
594 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry) in jffs2_rmdir() argument
596 struct jffs2_sb_info *c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_rmdir()
597 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_rmdir()
615 inode_set_mtime_to_ts(dir_i, in jffs2_rmdir()
616 inode_set_ctime_to_ts(dir_i, ITIME(now))); in jffs2_rmdir()
618 drop_nlink(dir_i); in jffs2_rmdir()
623 static int jffs2_mknod (struct mnt_idmap *idmap, struct inode *dir_i, in jffs2_mknod() argument
643 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_mknod()
660 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_mknod()
699 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_mknod()
720 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mknod()
728 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_mknod()
752 inode_set_mtime_to_ts(dir_i, in jffs2_mknod()
753 inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime)))); in jffs2_mknod()