virtmem on 4.9

Ghislain Adnet <[email protected]> Mon, 22 Jan 2018 19:10:59 +0100
Newsgroups gmane.linux.vserver
Organization AQUEOS
Message-ID <[email protected]>
hi,

 I htink i got  it with the help of AlexanderS: on irc:


memcontrol.c
https://pastebin.com/raw/e5WBvcD1

mem_cgroup_usage return pages now and not bytes so remove the shift


limit.c
https://pastebin.com/raw/NkQ2BDqD

adapt to sysinfo.mem_unit


with the two i got the right virt_mem results.

Ghislain.