• Home
  • Raw
  • Download

Lines Matching refs:raw

184 							    struct jffs2_raw_node_ref *raw,  in jffs2_incore_replace_raw()  argument
198 if (f->metadata && f->metadata->raw == raw) { in jffs2_incore_replace_raw()
200 return &f->metadata->raw; in jffs2_incore_replace_raw()
205 while (!frag->node || frag->node->raw != raw) { in jffs2_incore_replace_raw()
210 return &frag->node->raw; in jffs2_incore_replace_raw()
214 if (fd->raw == raw) { in jffs2_incore_replace_raw()
216 return &fd->raw; in jffs2_incore_replace_raw()
278 struct jffs2_raw_node_ref *raw, *next, *first_raw = NULL; in jffs2_wbuf_recover() local
298 for (next = raw = jeb->first_node; next; raw = next) { in jffs2_wbuf_recover()
299 next = ref_next(raw); in jffs2_wbuf_recover()
301 if (ref_obsolete(raw) || in jffs2_wbuf_recover()
304 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover()
305 (ref_offset(raw) + ref_totlen(c, jeb, raw)), in jffs2_wbuf_recover()
310 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover()
311 (ref_offset(raw) + ref_totlen(c, jeb, raw))); in jffs2_wbuf_recover()
313 first_raw = raw; in jffs2_wbuf_recover()
329 while ((raw = ref_next(raw)) != jeb->last_node) in jffs2_wbuf_recover()
463 for (raw = first_raw; raw != jeb->last_node; raw = ref_next(raw)) { in jffs2_wbuf_recover()
464 uint32_t rawlen = ref_totlen(c, jeb, raw); in jffs2_wbuf_recover()
471 rawlen, ref_offset(raw), ref_flags(raw), ofs); in jffs2_wbuf_recover()
473 ic = jffs2_raw_ref_to_ic(raw); in jffs2_wbuf_recover()
478 BUG_ON(xd->node != raw); in jffs2_wbuf_recover()
480 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
484 BUG_ON(xr->node != raw); in jffs2_wbuf_recover()
486 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
493 if (*p == raw) { in jffs2_wbuf_recover()
494 (*p) = (raw->next_in_ino); in jffs2_wbuf_recover()
495 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
501 if (ic->state == INO_STATE_PRESENT && !ref_obsolete(raw)) { in jffs2_wbuf_recover()
517 adjust_ref = jffs2_incore_replace_raw(c, f, raw, in jffs2_wbuf_recover()
518 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); in jffs2_wbuf_recover()
527 new_ref = jffs2_link_node_ref(c, new_jeb, ofs | ref_flags(raw), rawlen, ic); in jffs2_wbuf_recover()
530 BUG_ON(*adjust_ref != raw); in jffs2_wbuf_recover()
536 if (!ref_obsolete(raw)) { in jffs2_wbuf_recover()
541 raw->flash_offset = ref_offset(raw) | REF_OBSOLETE; in jffs2_wbuf_recover()
542 BUG_ON(raw->next_in_ino); in jffs2_wbuf_recover()