]> Git Repo - linux.git/commitdiff
mm, slab: remove memcg_from_slab_obj()
authorVlastimil Babka <[email protected]>
Fri, 1 Mar 2024 16:08:09 +0000 (17:08 +0100)
committerVlastimil Babka <[email protected]>
Mon, 4 Mar 2024 10:24:36 +0000 (11:24 +0100)
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 <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
mm/slub.c

index 12066e69688d41b0024f92031cd068e900458d9b..186a8ec282288f30c085561349bb933168dee762 100644 (file)
--- 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)
 {
 }
This page took 0.067395 seconds and 4 git commands to generate.