* We keep the general caches in an array of slab caches that are used for
* 2^x bytes of allocations.
*/
* We keep the general caches in an array of slab caches that are used for
* 2^x bytes of allocations.
*/
static __always_inline void *kmalloc(size_t size, gfp_t flags)
{
if (__builtin_constant_p(size)) {
static __always_inline void *kmalloc(size_t size, gfp_t flags)
{
if (__builtin_constant_p(size)) {
return kmalloc_large(size, flags);
if (!(flags & SLUB_DMA)) {
return kmalloc_large(size, flags);
if (!(flags & SLUB_DMA)) {
static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
{
if (__builtin_constant_p(size) &&
static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
{
if (__builtin_constant_p(size) &&