return error;
}
-static int cgroup_config_unload_controller(struct cgroup_mount_point mount_info)
+static int cgroup_config_unload_controller(const struct cgroup_mount_point *mount_info)
{
int ret, error;
struct cgroup *cgroup = NULL;
if (cgroup == NULL)
return ECGFAIL;
- cgc = cgroup_add_controller(cgroup, mount_info.name);
+ cgc = cgroup_add_controller(cgroup, mount_info->name);
if (cgc == NULL) {
ret = ECGFAIL;
goto out_error;
if (ret != 0)
goto out_error;
- error = umount(mount_info.path);
+ error = umount(mount_info->path);
if (error) {
last_errno = errno;
ret = ECGOTHER;
goto out_error;
}
- error = rmdir(mount_info.path);
+ error = rmdir(mount_info->path);
if (error) {
last_errno = errno;
ret = ECGOTHER;
if (!curr_path)
goto out_errno;
- ret = cgroup_config_unload_controller(info);
+ ret = cgroup_config_unload_controller(&info);
if (ret)
goto out_error;