diff options
author | Vlastimil Babka | 2024-03-01 17:08:09 +0100 |
---|---|---|
committer | Vlastimil Babka | 2024-03-04 11:24:36 +0100 |
commit | 17cce771c5fc85f43680143ac8b3b944fdad113f (patch) | |
tree | f6fb3804241bcfd392e60d05dbb1d14dac370870 | |
parent | 3dd549a557f7dc326d59c5fa105e230ebf3d5458 (diff) |
mm, slab: remove memcg_from_slab_obj()
This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was
never used. Probably a leftover from development of a series.
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
-rw-r--r-- | mm/slub.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/slub.c b/mm/slub.c index 12066e69688d..186a8ec28228 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2028,11 +2028,6 @@ void memcg_slab_alloc_error_hook(struct kmem_cache *s, int objects, obj_cgroup_uncharge(objcg, objects * obj_full_size(s)); } #else /* CONFIG_MEMCG_KMEM */ -static inline struct mem_cgroup *memcg_from_slab_obj(void *ptr) -{ - return NULL; -} - static inline void memcg_free_slab_cgroups(struct slab *slab) { } |