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", (unsigned long)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", (unsigned long)orph->inum); in orphan_delete()
144 __orphan_drop(c, orph); in orphan_delete()
209 struct ubifs_orphan *orph, *child_orph, *tmp_o; in ubifs_delete_orphan() local
213 orph = lookup_orphan(c, inum); in ubifs_delete_orphan()
214 if (!orph) { in ubifs_delete_orphan()
222 list_for_each_entry_safe(child_orph, tmp_o, &orph->child_list, child_list) { in ubifs_delete_orphan()
227 orphan_delete(c, orph); in ubifs_delete_orphan()
346 struct ubifs_orph_node *orph; in write_orph_node() local
369 orph = c->orph_buf; in write_orph_node()
370 orph->ch.node_type = UBIFS_ORPH_NODE; in write_orph_node()
376 orph->inos[i] = cpu_to_le64(orphan->inum); in write_orph_node()
385 orph->cmt_no = cpu_to_le64(c->cmt_no); in write_orph_node()
388 orph->cmt_no = cpu_to_le64((c->cmt_no) | (1ULL << 63)); in write_orph_node()
635 struct ubifs_orph_node *orph; in do_kill_orphans() local
655 orph = snod->node; in do_kill_orphans()
658 cmt_no = le64_to_cpu(orph->cmt_no) & LLONG_MAX; in do_kill_orphans()
692 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in do_kill_orphans()
696 inum = le64_to_cpu(orph->inos[i]); in do_kill_orphans()
725 if (le64_to_cpu(orph->cmt_no) & (1ULL << 63)) { in do_kill_orphans()
955 struct ubifs_orph_node *orph; in dbg_read_orphans() local
963 orph = snod->node; in dbg_read_orphans()
964 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in dbg_read_orphans()
966 inum = le64_to_cpu(orph->inos[i]); in dbg_read_orphans()