Subject: + slab-document-kmalloc_order.patch added to -mm tree To: vdavydov@xxxxxxxxxxxxx,cl@xxxxxxxxx,penberg@xxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Thu, 17 Apr 2014 14:21:54 -0700 The patch titled Subject: slab: document kmalloc_order has been added to the -mm tree. Its filename is slab-document-kmalloc_order.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/slab-document-kmalloc_order.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/slab-document-kmalloc_order.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Vladimir Davydov <vdavydov@xxxxxxxxxxxxx> Subject: slab: document kmalloc_order Signed-off-by: Vladimir Davydov <vdavydov@xxxxxxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: Pekka Enberg <penberg@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/slab_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN mm/slab_common.c~slab-document-kmalloc_order mm/slab_common.c --- a/mm/slab_common.c~slab-document-kmalloc_order +++ a/mm/slab_common.c @@ -573,6 +573,11 @@ void __init create_kmalloc_caches(unsign } #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; _ Patches currently in -mm which might be from vdavydov@xxxxxxxxxxxxx are slb-charge-slabs-to-kmemcg-explicitly.patch mm-get-rid-of-__gfp_kmemcg.patch mm-get-rid-of-__gfp_kmemcg-fix.patch slab-document-kmalloc_order.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html