Lines Matching refs:new
26 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full… in jffs2_add_fd_to_list() argument
30 dbg_dentlist("add dirent \"%s\", ino #%u\n", new->name, new->ino); in jffs2_add_fd_to_list()
32 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list()
33 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list()
35 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list()
38 jffs2_mark_node_obsolete(c, new->raw); in jffs2_add_fd_to_list()
39 jffs2_free_full_dirent(new); in jffs2_add_fd_to_list()
43 new->next = (*prev)->next; in jffs2_add_fd_to_list()
49 *prev = new; in jffs2_add_fd_to_list()
55 new->next = *prev; in jffs2_add_fd_to_list()
56 *prev = new; in jffs2_add_fd_to_list()
436 void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new) in jffs2_add_ino_cache() argument
441 if (!new->ino) in jffs2_add_ino_cache()
442 new->ino = ++c->highest_ino; in jffs2_add_ino_cache()
444 dbg_inocache("add %p (ino #%u)\n", new, new->ino); in jffs2_add_ino_cache()
446 prev = &c->inocache_list[new->ino % c->inocache_hashsize]; in jffs2_add_ino_cache()
448 while ((*prev) && (*prev)->ino < new->ino) { in jffs2_add_ino_cache()
451 new->next = *prev; in jffs2_add_ino_cache()
452 *prev = new; in jffs2_add_ino_cache()