Lines Matching refs:orph

129 static void orphan_delete(struct ubifs_info *c, struct ubifs_orphan *orph)  in orphan_delete()  argument
131 if (orph->del) { in orphan_delete()
132 dbg_gen("deleted twice ino %lu", orph->inum); in orphan_delete()
136 if (orph->cmt) { in orphan_delete()
137 orph->del = 1; in orphan_delete()
138 orph->dnext = c->orph_dnext; in orphan_delete()
139 c->orph_dnext = orph; in orphan_delete()
140 dbg_gen("delete later ino %lu", orph->inum); in orphan_delete()
144 __orphan_drop(c, orph); in orphan_delete()
202 struct ubifs_orphan *orph, *child_orph, *tmp_o; in ubifs_delete_orphan() local
206 orph = lookup_orphan(c, inum); in ubifs_delete_orphan()
207 if (!orph) { in ubifs_delete_orphan()
215 list_for_each_entry_safe(child_orph, tmp_o, &orph->child_list, child_list) { in ubifs_delete_orphan()
220 orphan_delete(c, orph); in ubifs_delete_orphan()
339 struct ubifs_orph_node *orph; in write_orph_node() local
362 orph = c->orph_buf; in write_orph_node()
363 orph->ch.node_type = UBIFS_ORPH_NODE; in write_orph_node()
369 orph->inos[i] = cpu_to_le64(orphan->inum); in write_orph_node()
378 orph->cmt_no = cpu_to_le64(c->cmt_no); in write_orph_node()
381 orph->cmt_no = cpu_to_le64((c->cmt_no) | (1ULL << 63)); in write_orph_node()
628 struct ubifs_orph_node *orph; in do_kill_orphans() local
642 orph = snod->node; in do_kill_orphans()
645 cmt_no = le64_to_cpu(orph->cmt_no) & LLONG_MAX; in do_kill_orphans()
680 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in do_kill_orphans()
684 inum = le64_to_cpu(orph->inos[i]); in do_kill_orphans()
713 if (le64_to_cpu(orph->cmt_no) & (1ULL << 63)) { in do_kill_orphans()
943 struct ubifs_orph_node *orph; in dbg_read_orphans() local
951 orph = snod->node; in dbg_read_orphans()
952 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in dbg_read_orphans()
954 inum = le64_to_cpu(orph->inos[i]); in dbg_read_orphans()