render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c480ed
From 648fecd5f67da4d118632251365e5dd93d987d3c Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <648fecd5f67da4d118632251365e5dd93d987d3c@dist-git>
c480ed
From: Pavel Hrdina <phrdina@redhat.com>
c480ed
Date: Mon, 1 Jul 2019 17:07:06 +0200
c480ed
Subject: [PATCH] vircgroup: rename virCgroupController into
c480ed
 virCgroupV1Controller
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
(cherry picked from commit bebf732cfae2c1786cb92e7ba3217c551543e3a9)
c480ed
c480ed
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
Message-Id: <4f23fb7e55cf80372867783a87c95cac02653a94.1561993100.git.phrdina@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/util/vircgrouppriv.h | 8 ++++----
c480ed
 src/util/vircgroupv1.c   | 4 ++--
c480ed
 2 files changed, 6 insertions(+), 6 deletions(-)
c480ed
c480ed
diff --git a/src/util/vircgrouppriv.h b/src/util/vircgrouppriv.h
c480ed
index 38c911e8ed..ee6aeedbb5 100644
c480ed
--- a/src/util/vircgrouppriv.h
c480ed
+++ b/src/util/vircgrouppriv.h
c480ed
@@ -32,7 +32,7 @@
c480ed
 # include "vircgroup.h"
c480ed
 # include "vircgroupbackend.h"
c480ed
 
c480ed
-struct _virCgroupController {
c480ed
+struct _virCgroupV1Controller {
c480ed
     int type;
c480ed
     char *mountPoint;
c480ed
     /* If mountPoint holds several controllers co-mounted,
c480ed
@@ -42,15 +42,15 @@ struct _virCgroupController {
c480ed
     char *linkPoint;
c480ed
     char *placement;
c480ed
 };
c480ed
-typedef struct _virCgroupController virCgroupController;
c480ed
-typedef virCgroupController *virCgroupControllerPtr;
c480ed
+typedef struct _virCgroupV1Controller virCgroupV1Controller;
c480ed
+typedef virCgroupV1Controller *virCgroupV1ControllerPtr;
c480ed
 
c480ed
 struct _virCgroup {
c480ed
     char *path;
c480ed
 
c480ed
     virCgroupBackendPtr backend;
c480ed
 
c480ed
-    virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
c480ed
+    virCgroupV1Controller controllers[VIR_CGROUP_CONTROLLER_LAST];
c480ed
 };
c480ed
 
c480ed
 int virCgroupSetValueStr(virCgroupPtr group,
c480ed
diff --git a/src/util/vircgroupv1.c b/src/util/vircgroupv1.c
c480ed
index 54e7d6ea9a..0ba8757348 100644
c480ed
--- a/src/util/vircgroupv1.c
c480ed
+++ b/src/util/vircgroupv1.c
c480ed
@@ -225,7 +225,7 @@ virCgroupV1CopyPlacement(virCgroupPtr group,
c480ed
 static int
c480ed
 virCgroupV1ResolveMountLink(const char *mntDir,
c480ed
                             const char *typeStr,
c480ed
-                            virCgroupControllerPtr controller)
c480ed
+                            virCgroupV1ControllerPtr controller)
c480ed
 {
c480ed
     VIR_AUTOFREE(char *) linkSrc = NULL;
c480ed
     VIR_AUTOFREE(char *) tmp = NULL;
c480ed
@@ -320,7 +320,7 @@ virCgroupV1DetectMounts(virCgroupPtr group,
c480ed
              * once. We need to save the results of the last one,
c480ed
              * and we need to be careful to release the memory used
c480ed
              * by previous processing. */
c480ed
-            virCgroupControllerPtr controller = &group->controllers[i];
c480ed
+            virCgroupV1ControllerPtr controller = &group->controllers[i];
c480ed
 
c480ed
             VIR_FREE(controller->mountPoint);
c480ed
             VIR_FREE(controller->linkPoint);
c480ed
-- 
c480ed
2.22.0
c480ed