render / rpms / libvirt

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