• Home
  • Raw
  • Download

Lines Matching refs:dir_f

78 	struct jffs2_inode_info *dir_f;  in jffs2_lookup()  local
89 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_lookup()
94 mutex_lock(&dir_f->sem); in jffs2_lookup()
97 for (fd_list = dir_f->dents; fd_list && fd_list->nhash <= nhash; fd_list = fd_list->next) { in jffs2_lookup()
107 mutex_unlock(&dir_f->sem); in jffs2_lookup()
164 struct jffs2_inode_info *f, *dir_f; in jffs2_create() local
191 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_create()
200 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create()
228 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_unlink() local
233 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink()
248 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_link() local
265 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link()
282 struct jffs2_inode_info *f, *dir_f; in jffs2_symlink() local
393 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_symlink()
394 mutex_lock(&dir_f->sem); in jffs2_symlink()
402 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_symlink()
410 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_symlink()
417 mutex_unlock(&dir_f->sem); in jffs2_symlink()
428 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_symlink()
430 mutex_unlock(&dir_f->sem); in jffs2_symlink()
445 struct jffs2_inode_info *f, *dir_f; in jffs2_mkdir() local
537 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mkdir()
538 mutex_lock(&dir_f->sem); in jffs2_mkdir()
546 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_mkdir()
554 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mkdir()
561 mutex_unlock(&dir_f->sem); in jffs2_mkdir()
573 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_mkdir()
575 mutex_unlock(&dir_f->sem); in jffs2_mkdir()
590 struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_rmdir() local
601 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_rmdir()
613 struct jffs2_inode_info *f, *dir_f; in jffs2_mknod() local
707 dir_f = JFFS2_INODE_INFO(dir_i); in jffs2_mknod()
708 mutex_lock(&dir_f->sem); in jffs2_mknod()
716 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_mknod()
727 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mknod()
734 mutex_unlock(&dir_f->sem); in jffs2_mknod()
745 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_mknod()
747 mutex_unlock(&dir_f->sem); in jffs2_mknod()