]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/slab.h
mm/memory_hotplug: export generic_online_page()
[linux.git] / include / linux / slab.h
index 4d2a2fa55ed55ad7930f275db30b754752683d07..877a95c6a2d2839dc70132141040c55055c8613f 100644 (file)
@@ -561,26 +561,6 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
        return __kmalloc(size, flags);
 }
 
-/*
- * Determine size used for the nth kmalloc cache.
- * return size or 0 if a kmalloc cache for that
- * size does not exist
- */
-static __always_inline unsigned int kmalloc_size(unsigned int n)
-{
-#ifndef CONFIG_SLOB
-       if (n > 2)
-               return 1U << n;
-
-       if (n == 1 && KMALLOC_MIN_SIZE <= 32)
-               return 96;
-
-       if (n == 2 && KMALLOC_MIN_SIZE <= 64)
-               return 192;
-#endif
-       return 0;
-}
-
 static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
 {
 #ifndef CONFIG_SLOB