]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix virCgroupGetMemoryStat arguments order
authorDmitry Frolov <frolov@swemel.ru>
Mon, 4 Sep 2023 11:44:48 +0000 (14:44 +0300)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 5 Sep 2023 12:43:50 +0000 (14:43 +0200)
commita3397370e86362477db7609a255cc74c6c5a656f
tree85b3c74e4f35fb4367aea7f60dd5134a25401f84
parente95b81c2fd62d700f697349964b8b2f63e44c64b
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>
src/lxc/lxc_cgroup.c