Lines Matching full:node
14 * An orphan is an inode number whose inode node has been committed to the index
222 * do_write_orph_node - write a node to the orphan head.
224 * @len: length of node
227 * This function writes a node to the orphan head from the orphan buffer. If
254 * write_orph_node - write an orphan node.
258 * This function builds an orphan node from the cnext list and writes it to the
306 /* Mark the last node of the commit */ in write_orph_node()
541 * @last_cmt_no: cmt_no of last orphan node read is passed and returned here
543 * @last_flagged: whether the end orphan node is encountered
546 * every orphan node in a LEB and for every inode number recorded, removes
561 ubifs_err(c, "invalid node type %d in orphan area at %d:%d", in do_kill_orphans()
563 ubifs_dump_node(c, snod->node); in do_kill_orphans()
567 orph = snod->node; in do_kill_orphans()
572 * The commit number on the master node may be less, because in do_kill_orphans()
576 * though the commit number on the master node stays the same in do_kill_orphans()
577 * because the master node has not been re-written. in do_kill_orphans()
583 * The last orphan node had a higher commit number and in do_kill_orphans()
585 * number. That makes this orphan node, out of date. in do_kill_orphans()
588 ubifs_err(c, "out of order commit number %llu in orphan node at %d:%d", in do_kill_orphans()
590 ubifs_dump_node(c, snod->node); in do_kill_orphans()
616 dbg_rcvry("last orph node for commit %llu at %d:%d", in do_kill_orphans()
652 * through. In addition, the last orphan node written for each commit is in kill_orphans()
732 struct ubifs_ino_node *node; member
821 /* Lowest node type is the inode node, so it comes first */ in dbg_orphan_check()
823 ubifs_err(c, "found orphan node ino %lu, type %d", in dbg_orphan_check()
827 err = ubifs_tnc_read_node(c, zbr, ci->node); in dbg_orphan_check()
829 ubifs_err(c, "node read failed, error %d", err); in dbg_orphan_check()
832 if (ci->node->nlink == 0) in dbg_orphan_check()
856 orph = snod->node; in dbg_read_orphans()
915 ci.node = kmalloc(UBIFS_MAX_INO_NODE_SZ, GFP_NOFS); in dbg_check_orphans()
916 if (!ci.node) { in dbg_check_orphans()
943 kfree(ci.node); in dbg_check_orphans()