/* This function returns %0 on success and a negative error code on failure.  */
int ubifs_write_rcvrd_mst_node(struct ubifs_info *c)
/* This function returns %0 on success and a negative error code on failure.  */
int ubifs_write_rcvrd_mst_node(struct ubifs_info *c)
{
	int err;
	if (!c->rcvrd_mst_node)
		return 0;
	c->rcvrd_mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY);
	c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY);
	err = write_rcvrd_mst_node(c, c->rcvrd_mst_node);
	if (err)
		return err;
	kfree(c->rcvrd_mst_node);
	c->rcvrd_mst_node = NULL;
	return 0;
}