]> git.baikalelectronics.ru Git - 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)
commitf7418daeebde6dea49e82061f67f00bf6fa3f551
tree346cb6c621d85e998868d6f1d50be2b2bcd0982a
parentbbed8ad3b6c7d1fe65246905e0a6cb86d402c470
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: eb426bfca325c278b ("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