]> git.hungrycats.org Git - linux/commit
memcg: convert threshold to bytes
authorShaohua Li <shli@fb.com>
Thu, 15 Oct 2015 22:28:29 +0000 (15:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 00:53:38 +0000 (09:53 +0900)
commit0953cead4005519a9b690a387d41c3d201a6e287
tree6ece06e15616318ea3ad205e3b5bda7d5b5eead6
parent07d25699afc37a6985321dcf7ba1ad38425f6731
memcg: convert threshold to bytes

commit 424cdc14138088ada1b0e407a2195b2783c6e5ef upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/memcontrol.c