/* This function is similar to 'lnc_add()', but it does not create a copy of @node but inserts @node to TNC directly.  */
static int lnc_add_directly(struct ubifs_info *c, struct ubifs_zbranch *zbr, void *node)
/* This function is similar to 'lnc_add()', but it does not create a copy of @node but inserts @node to TNC directly.  */
static int lnc_add_directly(struct ubifs_info *c, struct ubifs_zbranch *zbr, void *node)
{
	int err;
	ubifs_assert(!zbr->leaf);
	ubifs_assert(zbr->len != 0);
	err = ubifs_validate_entry(c, node);
	if (err) {
		dump_stack();
		ubifs_dump_node(c, node);
		return err;
	}
	zbr->leaf = node;
	return 0;
}