/* Find the lowest leftmost znode in a subtree of the TNC tree. The LNC is ignored.  */
struct ubifs_znode* ubifs_tnc_postorder_first(struct ubifs_znode *znode)
/* Find the lowest leftmost znode in a subtree of the TNC tree. The LNC is ignored.  */
struct ubifs_znode* ubifs_tnc_postorder_first(struct ubifs_znode *znode)
{
	if (unlikely(!znode))
		return NULL;
	while (znode->level > 0) {
		struct ubifs_znode *child;
		child = ubifs_tnc_find_child(znode, 0);
		if (!child)
			return znode;
		znode = child;
	}
	return znode;
}