memcg: convert threshold to bytes
authorShaohua Li <[email protected]>
Thu, 15 Oct 2015 22:28:29 +0000 (15:28 -0700)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c