/* Set or unset the suspension state of a device. If the device already is in the requested state we just return its status.  */
static int dev_suspend(struct dm_ioctl *param, size_t param_size)
/* Set or unset the suspension state of a device. If the device already is in the requested state we just return its status.  */
static int dev_suspend(struct dm_ioctl *param, size_t param_size)
{
	if (param->flags & DM_SUSPEND_FLAG)
		return do_suspend(param);
	return do_resume(param);
}