diff options
author | Yu Zhao <yuzhao@google.com> | 2018-02-01 01:20:02 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-01 02:18:39 +0100 |
commit | c054a78c66c7a5aa218220d8949ebcf13a86b796 (patch) | |
tree | 2979862ba38fe056a0dd80bebcea67a60ba490b9 /mm/page_alloc.c | |
parent | zswap: only save zswap header when necessary (diff) | |
download | linux-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