diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2019-05-13 17:22:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 09:47:50 -0700 |
commit | f46b79120e94f92843a83db1d9ece482ee735d3a (patch) | |
tree | 5d05501df36411d4477b83a7489c9d2feaf8cfb4 /mm/memory.c | |
parent | c553ea4fdf2701d64b9e9cca4497a8a2512bb025 (diff) | |
download | linux-f46b79120e94f92843a83db1d9ece482ee735d3a.tar.gz linux-f46b79120e94f92843a83db1d9ece482ee735d3a.tar.bz2 linux-f46b79120e94f92843a83db1d9ece482ee735d3a.zip |
mm/vmscan.c: simplify shrink_inactive_list()
This merges together duplicated patterns of code. Also, replace
count_memcg_events() with its irq-careless namesake, because they are
already called in interrupts disabled context.
Link: http://lkml.kernel.org/r/2ece1df4-2989-bc9b-6172-61e9fdde5bfd@virtuozzo.com
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions