Lines Matching refs:fd
78 struct jffs2_full_dirent *fd = NULL, *fd_list; in jffs2_lookup() local
95 (!fd || fd_list->version > fd->version) && in jffs2_lookup()
98 fd = fd_list; in jffs2_lookup()
101 if (fd) in jffs2_lookup()
102 ino = fd->ino; in jffs2_lookup()
123 struct jffs2_full_dirent *fd; in jffs2_readdir() local
149 for (fd = f->dents; fd; fd = fd->next) { in jffs2_readdir()
155 fd->name, fd->ino, fd->type, curofs, offset)); in jffs2_readdir()
158 if (!fd->ino) { in jffs2_readdir()
159 D2(printk(KERN_DEBUG "Skipping deletion dirent \"%s\"\n", fd->name)); in jffs2_readdir()
163 …D2(printk(KERN_DEBUG "Dirent %ld: \"%s\", ino #%u, type %d\n", offset, fd->name, fd->ino, fd->type… in jffs2_readdir()
164 if (filldir(dirent, fd->name, strlen(fd->name), offset, fd->ino, fd->type) < 0) in jffs2_readdir()
305 struct jffs2_full_dirent *fd; in jffs2_symlink() local
432 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_symlink()
434 if (IS_ERR(fd)) { in jffs2_symlink()
441 return PTR_ERR(fd); in jffs2_symlink()
450 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_symlink()
468 struct jffs2_full_dirent *fd; in jffs2_mkdir() local
577 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mkdir()
579 if (IS_ERR(fd)) { in jffs2_mkdir()
586 return PTR_ERR(fd); in jffs2_mkdir()
596 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_mkdir()
610 struct jffs2_full_dirent *fd; in jffs2_rmdir() local
614 for (fd = f->dents ; fd; fd = fd->next) { in jffs2_rmdir()
615 if (fd->ino) in jffs2_rmdir()
637 struct jffs2_full_dirent *fd; in jffs2_mknod() local
754 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_mknod()
756 if (IS_ERR(fd)) { in jffs2_mknod()
763 return PTR_ERR(fd); in jffs2_mknod()
772 jffs2_add_fd_to_list(c, fd, &dir_f->dents); in jffs2_mknod()
799 struct jffs2_full_dirent *fd; in jffs2_rename() local
802 for (fd = victim_f->dents; fd; fd = fd->next) { in jffs2_rename()
803 if (fd->ino) { in jffs2_rename()