summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2018-02-01 01:20:02 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 02:18:39 +0100
commitc054a78c66c7a5aa218220d8949ebcf13a86b796 (patch)
tree2979862ba38fe056a0dd80bebcea67a60ba490b9 /mm/page_alloc.c
parentzswap: only save zswap header when necessary (diff)
downloadlinux-c054a78c66c7a5aa218220d8949ebcf13a86b796.tar.xz
linux-c054a78c66c7a5aa218220d8949ebcf13a86b796.zip
memcg: refactor mem_cgroup_resize_limit()
mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have identical logics. Refactor code so we don't need to keep two pieces of code that does same thing. Link: http://lkml.kernel.org/r/20180108224238.14583-1-yuzhao@google.com Signed-off-by: Yu Zhao <yuzhao@google.com> Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions