mm, slab: remove memcg_from_slab_obj()
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Vlastimil Babka <[email protected]>
--- mm/slub.c | 5 ----- 1 file changed, 5 deletions(-)
mm/slub.c +0 -5
@@ -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) { }
Signature · 1 line
2.44.0
Quoted 4 lines · Vlastimil Babka
This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was never used. Probably a leftover from development of a series.
Signed-off-by Vlastimil Babka <[email protected]>
LGTM, thanks!
Reviewed-by Chengming Zhou <[email protected]>
Quoted 20 lines
--- mm/slub.c | 5 ----- 1 file changed, 5 deletions(-)mm/slub.c +0
-5@@ -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) { }
Quoted 4 lines · Vlastimil Babka
This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was never used. Probably a leftover from development of a series.
Signed-off-by Vlastimil Babka <[email protected]>
Reviewed-by Roman Gushchin <[email protected]>
Thanks!
Quoted 4 lines · Vlastimil Babka
This empty wrapped exists only for !CONFIG_MEMCG_KMEM and seems it was never used. Probably a leftover from development of a series.
Signed-off-by Vlastimil Babka <[email protected]>
Acked-by David Rientjes <[email protected]>