• Home
  • Raw
  • Download

Lines Matching refs:prev

28 	struct jffs2_full_dirent **prev = list;  in jffs2_add_fd_to_list()  local
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()
37 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list()
42 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list()
43 new->next = (*prev)->next; in jffs2_add_fd_to_list()
46 if ((*prev)->raw) in jffs2_add_fd_to_list()
47 jffs2_mark_node_obsolete(c, ((*prev)->raw)); in jffs2_add_fd_to_list()
48 jffs2_free_full_dirent(*prev); in jffs2_add_fd_to_list()
49 *prev = new; in jffs2_add_fd_to_list()
53 prev = &((*prev)->next); 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()
386 struct jffs2_node_frag *prev = frag_prev(newfrag); in jffs2_add_full_dnode_to_inode() local
390 if (prev->node) in jffs2_add_full_dnode_to_inode()
391 mark_ref_normal(prev->node->raw); in jffs2_add_full_dnode_to_inode()
438 struct jffs2_inode_cache **prev; in jffs2_add_ino_cache() local
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()
449 prev = &(*prev)->next; in jffs2_add_ino_cache()
451 new->next = *prev; in jffs2_add_ino_cache()
452 *prev = new; in jffs2_add_ino_cache()
459 struct jffs2_inode_cache **prev; in jffs2_del_ino_cache() local
467 prev = &c->inocache_list[old->ino % c->inocache_hashsize]; in jffs2_del_ino_cache()
469 while ((*prev) && (*prev)->ino < old->ino) { in jffs2_del_ino_cache()
470 prev = &(*prev)->next; in jffs2_del_ino_cache()
472 if ((*prev) == old) { in jffs2_del_ino_cache()
473 *prev = old->next; in jffs2_del_ino_cache()
529 struct jffs2_node_frag *prev = NULL; in jffs2_lookup_node_frag() local
541 if (!prev || frag->ofs > prev->ofs) in jffs2_lookup_node_frag()
542 prev = frag; in jffs2_lookup_node_frag()
554 if (prev) in jffs2_lookup_node_frag()
556 prev->ofs, prev->ofs+prev->size); in jffs2_lookup_node_frag()
560 return prev; in jffs2_lookup_node_frag()