X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=include%2Flinux%2Fslab_def.h;h=ccda7b9669a5125483bcfc134f25c4770b0655e3;hb=286e04b8ed7a04279ae277f0f024430246ea5eec;hp=abc7de77b9881a0a3ab81c50f103f0b1b782fc68;hpb=74acee309fb2a434dce215d44014e6f8e06975ae;p=linux-2.6-microblaze.git diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index abc7de77b988..ccda7b9669a5 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h @@ -114,4 +114,10 @@ static inline unsigned int obj_to_index(const struct kmem_cache *cache, return reciprocal_divide(offset, cache->reciprocal_buffer_size); } +static inline int objs_per_slab_page(const struct kmem_cache *cache, + const struct page *page) +{ + return cache->num; +} + #endif /* _LINUX_SLAB_DEF_H */