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