mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
vircgroup: rename virCgroupController into virCgroupV1Controller
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
2b09065e0f
commit
bebf732cfa
@ -32,7 +32,7 @@
|
|||||||
# include "vircgroup.h"
|
# include "vircgroup.h"
|
||||||
# include "vircgroupbackend.h"
|
# include "vircgroupbackend.h"
|
||||||
|
|
||||||
struct _virCgroupController {
|
struct _virCgroupV1Controller {
|
||||||
int type;
|
int type;
|
||||||
char *mountPoint;
|
char *mountPoint;
|
||||||
/* If mountPoint holds several controllers co-mounted,
|
/* If mountPoint holds several controllers co-mounted,
|
||||||
@ -42,15 +42,15 @@ struct _virCgroupController {
|
|||||||
char *linkPoint;
|
char *linkPoint;
|
||||||
char *placement;
|
char *placement;
|
||||||
};
|
};
|
||||||
typedef struct _virCgroupController virCgroupController;
|
typedef struct _virCgroupV1Controller virCgroupV1Controller;
|
||||||
typedef virCgroupController *virCgroupControllerPtr;
|
typedef virCgroupV1Controller *virCgroupV1ControllerPtr;
|
||||||
|
|
||||||
struct _virCgroup {
|
struct _virCgroup {
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
virCgroupBackendPtr backend;
|
virCgroupBackendPtr backend;
|
||||||
|
|
||||||
virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
virCgroupV1Controller controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||||
};
|
};
|
||||||
|
|
||||||
int virCgroupSetValueStr(virCgroupPtr group,
|
int virCgroupSetValueStr(virCgroupPtr group,
|
||||||
|
@ -224,7 +224,7 @@ virCgroupV1CopyPlacement(virCgroupPtr group,
|
|||||||
static int
|
static int
|
||||||
virCgroupV1ResolveMountLink(const char *mntDir,
|
virCgroupV1ResolveMountLink(const char *mntDir,
|
||||||
const char *typeStr,
|
const char *typeStr,
|
||||||
virCgroupControllerPtr controller)
|
virCgroupV1ControllerPtr controller)
|
||||||
{
|
{
|
||||||
VIR_AUTOFREE(char *) linkSrc = NULL;
|
VIR_AUTOFREE(char *) linkSrc = NULL;
|
||||||
VIR_AUTOFREE(char *) tmp = NULL;
|
VIR_AUTOFREE(char *) tmp = NULL;
|
||||||
@ -319,7 +319,7 @@ virCgroupV1DetectMounts(virCgroupPtr group,
|
|||||||
* once. We need to save the results of the last one,
|
* once. We need to save the results of the last one,
|
||||||
* and we need to be careful to release the memory used
|
* and we need to be careful to release the memory used
|
||||||
* by previous processing. */
|
* by previous processing. */
|
||||||
virCgroupControllerPtr controller = &group->controllers[i];
|
virCgroupV1ControllerPtr controller = &group->controllers[i];
|
||||||
|
|
||||||
VIR_FREE(controller->mountPoint);
|
VIR_FREE(controller->mountPoint);
|
||||||
VIR_FREE(controller->linkPoint);
|
VIR_FREE(controller->linkPoint);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user