Lines Matching refs:orph

130 static void orphan_delete(struct ubifs_info *c, struct ubifs_orphan *orph)  in orphan_delete()  argument
132 if (orph->del) { in orphan_delete()
133 dbg_gen("deleted twice ino %lu", (unsigned long)orph->inum); in orphan_delete()
137 if (orph->cmt) { in orphan_delete()
138 orph->del = 1; in orphan_delete()
139 rb_erase(&orph->rb, &c->orph_tree); in orphan_delete()
140 orph->dnext = c->orph_dnext; in orphan_delete()
141 c->orph_dnext = orph; in orphan_delete()
142 dbg_gen("delete later ino %lu", (unsigned long)orph->inum); in orphan_delete()
146 __orphan_drop(c, orph); in orphan_delete()
158 struct ubifs_orphan *orph; in ubifs_delete_orphan() local
162 orph = lookup_orphan(c, inum); in ubifs_delete_orphan()
163 if (!orph) { in ubifs_delete_orphan()
171 orphan_delete(c, orph); in ubifs_delete_orphan()
290 struct ubifs_orph_node *orph; in write_orph_node() local
313 orph = c->orph_buf; in write_orph_node()
314 orph->ch.node_type = UBIFS_ORPH_NODE; in write_orph_node()
320 orph->inos[i] = cpu_to_le64(orphan->inum); in write_orph_node()
329 orph->cmt_no = cpu_to_le64(c->cmt_no); in write_orph_node()
332 orph->cmt_no = cpu_to_le64((c->cmt_no) | (1ULL << 63)); in write_orph_node()
533 struct ubifs_orph_node *orph; in do_kill_orphans() local
553 orph = snod->node; in do_kill_orphans()
556 cmt_no = le64_to_cpu(orph->cmt_no) & LLONG_MAX; in do_kill_orphans()
590 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in do_kill_orphans()
594 inum = le64_to_cpu(orph->inos[i]); in do_kill_orphans()
616 if (le64_to_cpu(orph->cmt_no) & (1ULL << 63)) { in do_kill_orphans()
850 struct ubifs_orph_node *orph; in dbg_read_orphans() local
858 orph = snod->node; in dbg_read_orphans()
859 n = (le32_to_cpu(orph->ch.len) - UBIFS_ORPH_NODE_SZ) >> 3; in dbg_read_orphans()
861 inum = le64_to_cpu(orph->inos[i]); in dbg_read_orphans()