Lines Matching refs:dir_i
91 static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target) in jffs2_lookup() argument
101 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_lookup()
102 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_lookup()
119 inode = iget(dir_i->i_sb, ino); in jffs2_lookup()
191 static int jffs2_create(struct inode *dir_i, struct dentry *dentry, int mode) in jffs2_create() argument
209 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_create()
224 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_create()
287 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_create()
295 rd->pino = dir_i->i_ino; in jffs2_create()
304 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, namelen, phys_ofs, &writtenlen); in jffs2_create()
317 dir_i->i_mtime = dir_i->i_ctime = rd->mctime; in jffs2_create()
335 static int jffs2_do_unlink(struct inode *dir_i, struct dentry *dentry, int rename) in jffs2_do_unlink() argument
344 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_do_unlink()
356 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_do_unlink()
365 rd->pino = dir_i->i_ino; in jffs2_do_unlink()
374 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, dentry->d_name.len, phys_ofs, NULL); in jffs2_do_unlink()
417 static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry) in jffs2_unlink() argument
419 return jffs2_do_unlink(dir_i, dentry, 0); in jffs2_unlink()
423 static int jffs2_do_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry, in… in jffs2_do_link() argument
432 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_do_link()
444 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_do_link()
453 rd->pino = dir_i->i_ino; in jffs2_do_link()
466 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, dentry->d_name.len, phys_ofs, NULL); in jffs2_do_link()
489 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
500 ret = jffs2_do_link(old_dentry, dir_i, dentry, 0); in jffs2_link()
510 static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char *target) in jffs2_symlink() argument
534 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_symlink()
547 inode = jffs2_new_inode(dir_i, S_IFLNK | S_IRWXUGO, ri); in jffs2_symlink()
608 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_symlink()
616 rd->pino = dir_i->i_ino; in jffs2_symlink()
625 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, namelen, phys_ofs, &writtenlen); in jffs2_symlink()
638 dir_i->i_mtime = dir_i->i_ctime = rd->mctime; in jffs2_symlink()
652 static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, int mode) in jffs2_mkdir() argument
672 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_mkdir()
685 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_mkdir()
742 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mkdir()
750 rd->pino = dir_i->i_ino; in jffs2_mkdir()
759 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, namelen, phys_ofs, &writtenlen); in jffs2_mkdir()
772 dir_i->i_mtime = dir_i->i_ctime = rd->mctime; in jffs2_mkdir()
785 static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry) in jffs2_rmdir() argument
794 return jffs2_unlink(dir_i, dentry); in jffs2_rmdir()
797 static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, int mode, int rdev) in jffs2_mknod() argument
817 c = JFFS2_SB_INFO(dir_i->i_sb); in jffs2_mknod()
835 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_mknod()
896 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mknod()
904 rd->pino = dir_i->i_ino; in jffs2_mknod()
916 fd = jffs2_write_dirent(dir_i, rd, dentry->d_name.name, namelen, phys_ofs, &writtenlen); in jffs2_mknod()
929 dir_i->i_mtime = dir_i->i_ctime = rd->mctime; in jffs2_mknod()