• Home
  • Raw
  • Download

Lines Matching refs:raw

178 							    struct jffs2_raw_node_ref *raw,  in jffs2_incore_replace_raw()  argument
192 if (f->metadata && f->metadata->raw == raw) { in jffs2_incore_replace_raw()
194 return &f->metadata->raw; in jffs2_incore_replace_raw()
199 while (!frag->node || frag->node->raw != raw) { in jffs2_incore_replace_raw()
204 return &frag->node->raw; in jffs2_incore_replace_raw()
208 if (fd->raw == raw) { in jffs2_incore_replace_raw()
210 return &fd->raw; in jffs2_incore_replace_raw()
270 struct jffs2_raw_node_ref *raw, *next, *first_raw = NULL; in jffs2_wbuf_recover() local
290 for (next = raw = jeb->first_node; next; raw = next) { in jffs2_wbuf_recover()
291 next = ref_next(raw); in jffs2_wbuf_recover()
293 if (ref_obsolete(raw) || in jffs2_wbuf_recover()
296 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover()
297 (ref_offset(raw) + ref_totlen(c, jeb, raw)), in jffs2_wbuf_recover()
302 ref_offset(raw), ref_flags(raw), in jffs2_wbuf_recover()
303 (ref_offset(raw) + ref_totlen(c, jeb, raw))); in jffs2_wbuf_recover()
305 first_raw = raw; in jffs2_wbuf_recover()
321 while ((raw = ref_next(raw)) != jeb->last_node) in jffs2_wbuf_recover()
455 for (raw = first_raw; raw != jeb->last_node; raw = ref_next(raw)) { in jffs2_wbuf_recover()
456 uint32_t rawlen = ref_totlen(c, jeb, raw); in jffs2_wbuf_recover()
463 rawlen, ref_offset(raw), ref_flags(raw), ofs)); in jffs2_wbuf_recover()
465 ic = jffs2_raw_ref_to_ic(raw); in jffs2_wbuf_recover()
470 BUG_ON(xd->node != raw); in jffs2_wbuf_recover()
472 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
476 BUG_ON(xr->node != raw); in jffs2_wbuf_recover()
478 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
485 if (*p == raw) { in jffs2_wbuf_recover()
486 (*p) = (raw->next_in_ino); in jffs2_wbuf_recover()
487 raw->next_in_ino = NULL; in jffs2_wbuf_recover()
493 if (ic->state == INO_STATE_PRESENT && !ref_obsolete(raw)) { in jffs2_wbuf_recover()
509 adjust_ref = jffs2_incore_replace_raw(c, f, raw, in jffs2_wbuf_recover()
510 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); in jffs2_wbuf_recover()
519 new_ref = jffs2_link_node_ref(c, new_jeb, ofs | ref_flags(raw), rawlen, ic); in jffs2_wbuf_recover()
522 BUG_ON(*adjust_ref != raw); in jffs2_wbuf_recover()
528 if (!ref_obsolete(raw)) { in jffs2_wbuf_recover()
533 raw->flash_offset = ref_offset(raw) | REF_OBSOLETE; in jffs2_wbuf_recover()
534 BUG_ON(raw->next_in_ino); in jffs2_wbuf_recover()