diff options
author | Muchun Song <songmuchun@bytedance.com> | 2021-11-05 21:37:59 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-06 21:30:35 +0100 |
commit | 3eef11279ba5936b1554a0dccb1cea8345e5e2a5 (patch) | |
tree | 8ac79c23410389d1ab99b3cca4c9e4f63bb8cbd4 /mm/oom_kill.c | |
parent | mm: memcontrol: remove the kmem states (diff) | |
download | linux-3eef11279ba5936b1554a0dccb1cea8345e5e2a5.tar.xz linux-3eef11279ba5936b1554a0dccb1cea8345e5e2a5.zip |
mm: list_lru: only add memcg-aware lrus to the global lru list
The non-memcg-aware lru is always skiped when traversing the global lru
list, which is not efficient. We can only add the memcg-aware lru to
the global lru list instead to make traversing more efficient.
Link: https://lkml.kernel.org/r/20211025124353.55781-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Roman Gushchin <guro@fb.com>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions