Lines Matching refs:dir_f

441 int jffs2_do_create(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,  in jffs2_do_create()  argument
485 ret = jffs2_init_security(&f->vfs_inode, &dir_f->vfs_inode, qstr); in jffs2_do_create()
508 mutex_lock(&dir_f->sem); in jffs2_do_create()
515 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_create()
516 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_create()
524 fd = jffs2_write_dirent(c, dir_f, rd, qstr->name, qstr->len, ALLOC_NORMAL); in jffs2_do_create()
532 mutex_unlock(&dir_f->sem); in jffs2_do_create()
538 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_do_create()
541 mutex_unlock(&dir_f->sem); in jffs2_do_create()
547 int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, in jffs2_do_unlink() argument
570 mutex_lock(&dir_f->sem); in jffs2_do_unlink()
578 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_unlink()
579 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_unlink()
587 fd = jffs2_write_dirent(c, dir_f, rd, name, namelen, ALLOC_DELETION); in jffs2_do_unlink()
593 mutex_unlock(&dir_f->sem); in jffs2_do_unlink()
598 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_do_unlink()
599 mutex_unlock(&dir_f->sem); in jffs2_do_unlink()
603 fd = dir_f->dents; in jffs2_do_unlink()
607 mutex_lock(&dir_f->sem); in jffs2_do_unlink()
609 for (fd = dir_f->dents; fd; fd = fd->next) { in jffs2_do_unlink()
626 mutex_unlock(&dir_f->sem); in jffs2_do_unlink()
669 int jffs2_do_link (struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t t… in jffs2_do_link() argument
687 mutex_lock(&dir_f->sem); in jffs2_do_link()
695 rd->pino = cpu_to_je32(dir_f->inocache->ino); in jffs2_do_link()
696 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_do_link()
706 fd = jffs2_write_dirent(c, dir_f, rd, name, namelen, ALLOC_NORMAL); in jffs2_do_link()
712 mutex_unlock(&dir_f->sem); in jffs2_do_link()
717 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_do_link()
720 mutex_unlock(&dir_f->sem); in jffs2_do_link()