On Tue, Sep 18, 2018 at 05:45:53PM +0200, Pavel Hrdina wrote:
They all need virCgroupV1GetMemoryUnlimitedKB() so it's easier to
move them in one commit.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/util/vircgroup.c | 128 ++-------------------------
src/util/vircgroupbackend.h | 30 +++++++
src/util/vircgrouppriv.h | 6 ++
src/util/vircgroupv1.c | 168 ++++++++++++++++++++++++++++++++++++
4 files changed, 211 insertions(+), 121 deletions(-)
diff --git a/src/util/vircgroupbackend.h b/src/util/vircgroupbackend.h
index 672fb082c1..5e75e495c3 100644
--- a/src/util/vircgroupbackend.h
+++ b/src/util/vircgroupbackend.h
@@ -219,6 +219,30 @@ typedef int
(*virCgroupGetMemoryUsageCB)(virCgroupPtr group,
unsigned long *kb);
+typedef int
+(*virCgroupSetMemoryHardLimitCB)(virCgroupPtr group,
+ unsigned long long kb);
+
+typedef int
+(*virCgroupGetMemoryHardLimitCB)(virCgroupPtr group,
+ unsigned long long *kb);
+
+typedef int
+(*virCgroupSetMemorySoftLimitCB)(virCgroupPtr group,
+ unsigned long long kb);
+
+typedef int
+(*virCgroupGetMemorySoftLimitCB)(virCgroupPtr group,
+ unsigned long long *kb);
+
+typedef int
+(*virCgroupSetMemSwapHardLimitCB)(virCgroupPtr group,
+ unsigned long long kb);
+
+typedef int
+(*virCgroupGetMemSwapHardLimitCB)(virCgroupPtr group,
+ unsigned long long *kb);
+
struct _virCgroupBackend {
virCgroupBackendType type;
There are just two different types here.
Regardless:
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano