/* Set the sync status of a given region. This function must not fail.  */
static void userspace_set_region_sync(struct dm_dirty_log *log, region_t region, int in_sync)
/* Set the sync status of a given region. This function must not fail.  */
static void userspace_set_region_sync(struct dm_dirty_log *log, region_t region, int in_sync)
{
	int r;
	struct log_c *lc = log->context;
	struct {
		region_t r;
		int64_t i;
	} pkg;
	pkg.r = region;
	pkg.i = (int64_t)in_sync;
	r = userspace_do_request(lc, lc->uuid, DM_ULOG_SET_REGION_SYNC,
				 (char *)&pkg, sizeof(pkg),
				 NULL, NULL);
	return;
}