]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vircgroup: rename virCgroupController into virCgroupV1Controller
authorPavel Hrdina <phrdina@redhat.com>
Tue, 18 Sep 2018 15:36:06 +0000 (17:36 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 25 Sep 2018 11:40:22 +0000 (13:40 +0200)
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgrouppriv.h
src/util/vircgroupv1.c

index 38c911e8edae8bbcbca77d5dc8133ebd73b1f502..ee6aeedbb511beac1d5b01d08ad38475a949c5a2 100644 (file)
@@ -32,7 +32,7 @@
 # include "vircgroup.h"
 # include "vircgroupbackend.h"
 
-struct _virCgroupController {
+struct _virCgroupV1Controller {
     int type;
     char *mountPoint;
     /* If mountPoint holds several controllers co-mounted,
@@ -42,15 +42,15 @@ struct _virCgroupController {
     char *linkPoint;
     char *placement;
 };
-typedef struct _virCgroupController virCgroupController;
-typedef virCgroupController *virCgroupControllerPtr;
+typedef struct _virCgroupV1Controller virCgroupV1Controller;
+typedef virCgroupV1Controller *virCgroupV1ControllerPtr;
 
 struct _virCgroup {
     char *path;
 
     virCgroupBackendPtr backend;
 
-    virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
+    virCgroupV1Controller controllers[VIR_CGROUP_CONTROLLER_LAST];
 };
 
 int virCgroupSetValueStr(virCgroupPtr group,
index a6d6eade40da1e45370340cda346c2f0c0cccbbd..6886ad4ffa1d903d4ae8c6738c391a4eec3adf6f 100644 (file)
@@ -224,7 +224,7 @@ virCgroupV1CopyPlacement(virCgroupPtr group,
 static int
 virCgroupV1ResolveMountLink(const char *mntDir,
                             const char *typeStr,
-                            virCgroupControllerPtr controller)
+                            virCgroupV1ControllerPtr controller)
 {
     VIR_AUTOFREE(char *) linkSrc = NULL;
     VIR_AUTOFREE(char *) tmp = NULL;
@@ -319,7 +319,7 @@ virCgroupV1DetectMounts(virCgroupPtr group,
              * once. We need to save the results of the last one,
              * and we need to be careful to release the memory used
              * by previous processing. */
-            virCgroupControllerPtr controller = &group->controllers[i];
+            virCgroupV1ControllerPtr controller = &group->controllers[i];
 
             VIR_FREE(controller->mountPoint);
             VIR_FREE(controller->linkPoint);