diff options
author | Muchun Song <songmuchun@bytedance.com> | 2021-11-05 13:37:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-06 13:30:35 -0700 |
commit | e80216d9f1f5c90b3cab834cd4fb492d731f70aa (patch) | |
tree | d29e2a43ba2f183703392ab4e3af4c9fc8486d45 /mm/list_lru.c | |
parent | 642688681133a501d149349ba1a824204f3540e1 (diff) | |
download | lwn-e80216d9f1f5c90b3cab834cd4fb492d731f70aa.tar.gz lwn-e80216d9f1f5c90b3cab834cd4fb492d731f70aa.zip |
mm: memcontrol: remove the kmem states
Now the kmem states is only used to indicate whether the kmem is
offline. However, we can set ->kmemcg_id to -1 to indicate whether the
kmem is offline. Finally, we can remove the kmem states to simplify the
code.
Link: https://lkml.kernel.org/r/20211025125259.56624-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Roman Gushchin <guro@fb.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
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/list_lru.c')
0 files changed, 0 insertions, 0 deletions