]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: make cgroup_memory_nokmem static
authorMuchun Song <songmuchun@bytedance.com>
Fri, 14 Jan 2022 22:05:29 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:27 +0000 (16:30 +0200)
commit42dff2a03e03f9e8cc16e0c9325ac5b161d20b09
treeaa5b46e87b1da4a8008871498fa0b44fe5e3f785
parent597e180650f18fba4b83210674e9cae13ee7eb17
mm: memcontrol: make cgroup_memory_nokmem static

Commit ee6e9a0cdfdd ("mm: memcg/slab: create a new set of kmalloc-cg-<n>
caches") makes cgroup_memory_nokmem global, however, it is unnecessary
because there is already a function mem_cgroup_kmem_disabled() which
exports it.

Just make it static and replace it with mem_cgroup_kmem_disabled() in
mm/slab_common.c.

Link: https://lkml.kernel.org/r/20211109065418.21693-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Chris Down <chris@chrisdown.name>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/internal.h
mm/memcontrol.c
mm/slab_common.c