]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
memcg: convert threshold to bytes
authorShaohua Li <shli@fb.com>
Thu, 15 Oct 2015 22:28:29 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2015 18:42:28 +0000 (11:42 -0700)
commit424cdc14138088ada1b0e407a2195b2783c6e5ef
tree346cb6c621d85e998868d6f1d50be2b2bcd0982a
parent8d740a37b92f3d4a0435fe263b32efc7f61c5efb
memcg: convert threshold to bytes

page_counter_memparse() returns pages for the threshold, while
mem_cgroup_usage() returns bytes for memory usage.  Convert the
threshold to bytes.

Fixes: 3e32cb2e0a12b6915 ("memcg: rename cgroup_event to mem_cgroup_event").
Signed-off-by: Shaohua Li <shli@fb.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c