Lines Matching refs:ref
579 void jffs2_mark_node_obsolete(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref) in jffs2_mark_node_obsolete() argument
588 if(unlikely(!ref)) { in jffs2_mark_node_obsolete()
592 if (ref_obsolete(ref)) { in jffs2_mark_node_obsolete()
594 __func__, ref_offset(ref)); in jffs2_mark_node_obsolete()
597 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete()
600 ref->flash_offset); in jffs2_mark_node_obsolete()
618 freed_len = ref_totlen(c, jeb, ref); in jffs2_mark_node_obsolete()
620 if (ref_flags(ref) == REF_UNCHECKED) { in jffs2_mark_node_obsolete()
624 ref->flash_offset, jeb->used_size); in jffs2_mark_node_obsolete()
628 ref_offset(ref), freed_len); in jffs2_mark_node_obsolete()
635 ref->flash_offset, jeb->used_size); in jffs2_mark_node_obsolete()
639 ref_offset(ref), freed_len); in jffs2_mark_node_obsolete()
673 ref->flash_offset = ref_offset(ref) | REF_OBSOLETE; in jffs2_mark_node_obsolete()
757 ref_offset(ref)); in jffs2_mark_node_obsolete()
758 ret = jffs2_flash_read(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); in jffs2_mark_node_obsolete()
761 ref_offset(ref), ret); in jffs2_mark_node_obsolete()
766 ref_offset(ref), retlen); in jffs2_mark_node_obsolete()
776 ref_offset(ref), je16_to_cpu(n.nodetype)); in jffs2_mark_node_obsolete()
781 ret = jffs2_flash_write(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n); in jffs2_mark_node_obsolete()
784 ref_offset(ref), ret); in jffs2_mark_node_obsolete()
789 ref_offset(ref), retlen); in jffs2_mark_node_obsolete()
803 if (ref->next_in_ino) { in jffs2_mark_node_obsolete()
809 ic = jffs2_raw_ref_to_ic(ref); in jffs2_mark_node_obsolete()
810 for (p = &ic->nodes; (*p) != ref; p = &((*p)->next_in_ino)) in jffs2_mark_node_obsolete()
813 *p = ref->next_in_ino; in jffs2_mark_node_obsolete()
814 ref->next_in_ino = NULL; in jffs2_mark_node_obsolete()