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()
231 fd = ic->scan_dents; in jffs2_build_filesystem()
232 ic->scan_dents = fd->next; in jffs2_build_filesystem()
233 jffs2_free_full_dirent(fd); in jffs2_build_filesystem()
247 struct jffs2_full_dirent *fd; in jffs2_build_remove_unlinked_inode() local
266 fd = ic->scan_dents; in jffs2_build_remove_unlinked_inode()
267 ic->scan_dents = fd->next; in jffs2_build_remove_unlinked_inode()
269 if (!fd->ino) { in jffs2_build_remove_unlinked_inode()
271 dbg_fsbuild("child \"%s\" is a deletion dirent, skipping...\n", fd->name); in jffs2_build_remove_unlinked_inode()
272 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()
278 dbg_fsbuild("removing child \"%s\", ino #%u\n", fd->name, fd->ino); in jffs2_build_remove_unlinked_inode()
280 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_remove_unlinked_inode()
283 fd->name, fd->ino); in jffs2_build_remove_unlinked_inode()
284 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()
294 fd->ino, fd->name); in jffs2_build_remove_unlinked_inode()
295 fd->next = *dead_fds; in jffs2_build_remove_unlinked_inode()
296 *dead_fds = fd; in jffs2_build_remove_unlinked_inode()
299 fd->ino, fd->name, child_ic->pino_nlink); in jffs2_build_remove_unlinked_inode()
300 jffs2_free_full_dirent(fd); in jffs2_build_remove_unlinked_inode()