]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: list_lru: only add memcg-aware lrus to the global lru list
authorMuchun Song <songmuchun@bytedance.com>
Fri, 5 Nov 2021 20:37:59 +0000 (13:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:35 +0000 (13:30 -0700)
commit3eef11279ba5936b1554a0dccb1cea8345e5e2a5
tree8ac79c23410389d1ab99b3cca4c9e4f63bb8cbd4
parente80216d9f1f5c90b3cab834cd4fb492d731f70aa
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>
mm/list_lru.c