aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/slub_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r--include/linux/slub_def.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 961e72eab90..364ba6c9fe2 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -225,7 +225,10 @@ void *__kmalloc(size_t size, gfp_t flags);
225static __always_inline void * 225static __always_inline void *
226kmalloc_order(size_t size, gfp_t flags, unsigned int order) 226kmalloc_order(size_t size, gfp_t flags, unsigned int order)
227{ 227{
228 void *ret = (void *) __get_free_pages(flags | __GFP_COMP, order); 228 void *ret;
229
230 flags |= (__GFP_COMP | __GFP_KMEMCG);
231 ret = (void *) __get_free_pages(flags, order);
229 kmemleak_alloc(ret, size, 1, flags); 232 kmemleak_alloc(ret, size, 1, flags);
230 return ret; 233 return ret;
231} 234}