]> www.infradead.org Git - users/willy/xarray.git/commit
mm: remove CONFIG_MEMCG_KMEM
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 1 Jul 2024 15:31:15 +0000 (11:31 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 10 Jul 2024 19:14:54 +0000 (12:14 -0700)
commit3a3b7fec3974f954600844e41d773c00857ef48a
tree40eb0671403d8c096f35cc0b5d457802dd139e1f
parent6df13230b612af81ce04f20bb37a02e58ef71925
mm: remove CONFIG_MEMCG_KMEM

CONFIG_MEMCG_KMEM used to be a user-visible option for whether slab
tracking is enabled.  It has been default-enabled and equivalent to
CONFIG_MEMCG for almost a decade.  We've only grown more kernel memory
accounting sites since, and there is no imaginable cgroup usecase going
forward that wants to track user pages but not the multitude of
user-drivable kernel allocations.

Link: https://lkml.kernel.org/r/20240701153148.452230-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
20 files changed:
include/linux/bpf.h
include/linux/list_lru.h
include/linux/memcontrol.h
include/linux/sched.h
include/linux/slab.h
include/trace/events/kmem.h
init/Kconfig
kernel/bpf/memalloc.c
kernel/bpf/syscall.c
mm/kfence/core.c
mm/kfence/kfence.h
mm/list_lru.c
mm/memcontrol-v1.c
mm/memcontrol.c
mm/percpu-internal.h
mm/percpu.c
mm/slab.h
mm/slab_common.c
mm/slub.c
tools/testing/selftests/cgroup/config