Lines Matching refs:fd

56 	struct jffs2_full_dirent *fd;  in jffs2_build_inode_pass1()  local
61 for(fd = ic->scan_dents; fd; fd = fd->next) { in jffs2_build_inode_pass1()
63 if (!fd->ino) in jffs2_build_inode_pass1()
68 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_inode_pass1()
71 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1()
72 jffs2_mark_node_obsolete(c, fd->raw); in jffs2_build_inode_pass1()
74 fd->ic = NULL; in jffs2_build_inode_pass1()
79 fd->ic = child_ic; in jffs2_build_inode_pass1()
83 if (fd->type == DT_DIR) { in jffs2_build_inode_pass1()
89 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); in jffs2_build_inode_pass1()
103 struct jffs2_full_dirent *fd; in jffs2_build_filesystem() local
150 fd = dead_fds; in jffs2_build_filesystem()
151 dead_fds = fd->next; in jffs2_build_filesystem()
153 ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_filesystem()
157 jffs2_free_full_dirent(fd); in jffs2_build_filesystem()
180 fd = ic->scan_dents; in jffs2_build_filesystem()
181 ic->scan_dents = fd->next; in jffs2_build_filesystem()
186 if (fd->type == DT_DIR) { in jffs2_build_filesystem()
187 if (!fd->ic) { in jffs2_build_filesystem()
194 BUG_ON(!(fd->ic->flags & INO_FLAGS_IS_DIR)); in jffs2_build_filesystem()
200 if (dir_hardlinks && fd->ic->pino_nlink) { in jffs2_build_filesystem()
202 fd->name, fd->ino, ic->ino, fd->ic->pino_nlink); in jffs2_build_filesystem()
207 fd->ic->pino_nlink = ic->ino; in jffs2_build_filesystem()
209 jffs2_free_full_dirent(fd); in jffs2_build_filesystem()
228 fd = ic->scan_dents; in jffs2_build_filesystem()
229 ic->scan_dents = fd->next; in jffs2_build_filesystem()
230 jffs2_free_full_dirent(fd); in jffs2_build_filesystem()
244 struct jffs2_full_dirent *fd; in jffs2_build_remove_unlinked_inode() local
263 fd = ic->scan_dents; in jffs2_build_remove_unlinked_inode()
264 ic->scan_dents = fd->next; in jffs2_build_remove_unlinked_inode()
266 if (!fd->ino) { in jffs2_build_remove_unlinked_inode()
268 dbg_fsbuild("child \"%s\" is a deletion dirent, skipping...\n", fd->name); in jffs2_build_remove_unlinked_inode()
269 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()
275 dbg_fsbuild("removing child \"%s\", ino #%u\n", fd->name, fd->ino); in jffs2_build_remove_unlinked_inode()
277 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_remove_unlinked_inode()
280 fd->name, fd->ino); in jffs2_build_remove_unlinked_inode()
281 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()
291 fd->ino, fd->name); in jffs2_build_remove_unlinked_inode()
292 fd->next = *dead_fds; in jffs2_build_remove_unlinked_inode()
293 *dead_fds = fd; in jffs2_build_remove_unlinked_inode()
296 fd->ino, fd->name, child_ic->pino_nlink); in jffs2_build_remove_unlinked_inode()
297 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()