/* This function implements postorder TNC traversal. The LNC is ignored. Returns the next element or NULL if @znode is already the last one.  */
struct ubifs_znode* ubifs_tnc_postorder_next(struct ubifs_znode *znode)
/* This function implements postorder TNC traversal. The LNC is ignored. Returns the next element or NULL if @znode is already the last one.  */
struct ubifs_znode* ubifs_tnc_postorder_next(struct ubifs_znode *znode)
{
	struct ubifs_znode *zn;
	ubifs_assert(znode);
	if (unlikely(!znode->parent))
		return NULL;
	zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1);
	if (!zn)
		return znode->parent;
	return ubifs_tnc_postorder_first(zn);
}