slab: reintroduce cpu_cache_get_on_cpu() static inline
PATCH 1/1 slab: reintroduce cpu_cache_get_on_cpu() static inline
It was present in the 3.8-rt series, in mm-slab-wrap-functions.patch but got dropped in the v3.10-rt series. Without it, compile of SLAB breaks, even for !RT_FULL builds.
Signed-off-by Paul Gortmaker <[email protected]>
---
[Should be squashed into patches/mm-slab-wrap-functions.patch ]
mm/slab.c | 6 ++++++ 1 file changed, 6 insertions(+)
mm/slab.c +6 -0
@@ -700,6 +700,12 @@ static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep)return cachep->array[smp_processor_id ()]; } +static inline struct array_cache *cpu_cache_get_on_cpu (struct kmem_cache *cachep, +int cpu) +{ +return cachep->array[cpu]; +} +static size_t slab_mgmt_size (size_t nr_objs,size_t align) {return ALIGN (sizeof (struct slab )+nr_objs*sizeof (kmem_bufctl_t), align);
Signature · 1 line
1.8.1.2