diff mbox series

[v3,3/5] API/cgroup: Add memory.min

Message ID 20220207141618.2844-4-rpalethorpe@suse.com
State Accepted
Headers show
Series Add memcontrol03 and declarative CG API | expand

Commit Message

Richard Palethorpe Feb. 7, 2022, 2:16 p.m. UTC
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
---
 lib/tst_cgroup.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Li Wang Feb. 8, 2022, 7:20 a.m. UTC | #1
On Mon, Feb 7, 2022 at 10:16 PM Richard Palethorpe <rpalethorpe@suse.com>
wrote:

> Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
>
Reviewed-by: Li Wang <liwang@redhat.com>


> ---
>  lib/tst_cgroup.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
> index 51b523b80..bb379caf5 100644
> --- a/lib/tst_cgroup.c
> +++ b/lib/tst_cgroup.c
> @@ -159,6 +159,7 @@ static const struct cgroup_file cgroup_ctrl_files[] = {
>
>  static const struct cgroup_file memory_ctrl_files[] = {
>         { "memory.current", "memory.usage_in_bytes", CTRL_MEMORY },
> +       { "memory.min", NULL, CTRL_MEMORY },
>         { "memory.max", "memory.limit_in_bytes", CTRL_MEMORY },
>         { "memory.stat", "memory.stat", CTRL_MEMORY },
>         { "memory.swappiness", "memory.swappiness", CTRL_MEMORY },
> --
> 2.34.1
>
>
diff mbox series

Patch

diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
index 51b523b80..bb379caf5 100644
--- a/lib/tst_cgroup.c
+++ b/lib/tst_cgroup.c
@@ -159,6 +159,7 @@  static const struct cgroup_file cgroup_ctrl_files[] = {
 
 static const struct cgroup_file memory_ctrl_files[] = {
 	{ "memory.current", "memory.usage_in_bytes", CTRL_MEMORY },
+	{ "memory.min", NULL, CTRL_MEMORY },
 	{ "memory.max", "memory.limit_in_bytes", CTRL_MEMORY },
 	{ "memory.stat", "memory.stat", CTRL_MEMORY },
 	{ "memory.swappiness", "memory.swappiness", CTRL_MEMORY },