fix virCgroupGetMemoryStat arguments order

Reviewing the sources, I noticed that, argumets order in
virCgroupGetMemoryStat() function call does not correspond
to the function declaration:
-instead of   *activeAnon, &meminfo->inactive_anon is passed;
-instead of *inactiveAnon,   &meminfo->active_anon is passed;
-instead of   *activeFile, &meminfo->inactive_file is passed;
-instead of *inactiveFile,   &meminfo->active_file is passed.

Fixes: e634c7cd0d ("lxc: Use virCgroupGetMemoryStat")

Signed-off-by: Dmitry Frolov <frolov@swemel.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Dmitry Frolov 2023-09-04 14:44:48 +03:00 committed by Martin Kletzander
parent e95b81c2fd
commit a3397370e8

View File

@ -130,10 +130,10 @@ static int virLXCCgroupGetMemStat(virCgroup *cgroup,
{
return virCgroupGetMemoryStat(cgroup,
&meminfo->cached,
&meminfo->inactive_anon,
&meminfo->active_anon,
&meminfo->inactive_file,
&meminfo->inactive_anon,
&meminfo->active_file,
&meminfo->inactive_file,
&meminfo->unevictable);
}