projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a3c65
)
slab: document kmalloc_order
author
Vladimir Davydov
<
[email protected]
>
Wed, 4 Jun 2014 23:07:04 +0000
(16:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 4 Jun 2014 23:53:58 +0000
(16:53 -0700)
Signed-off-by: Vladimir Davydov <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/slab_common.c
patch
|
blob
|
history
diff --git
a/mm/slab_common.c
b/mm/slab_common.c
index 1950c8f4d1a6f53885b03d81b586af89a4b0588b..2834bc2886fdd95d81c6f34e2cd8d979b4b43eb9 100644
(file)
--- a/
mm/slab_common.c
+++ b/
mm/slab_common.c
@@
-582,6
+582,11
@@
void __init create_kmalloc_caches(unsigned long flags)
}
#endif /* !CONFIG_SLOB */
+/*
+ * To avoid unnecessary overhead, we pass through large allocation requests
+ * directly to the page allocator. We use __GFP_COMP, because we will need to
+ * know the allocation order to free the pages properly in kfree.
+ */
void *kmalloc_order(size_t size, gfp_t flags, unsigned int order)
{
void *ret;