Skip to contentSkip to conversation

+ slab-document-kmalloc_order.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 17, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + slab-document-kmalloc_order.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
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 <[email protected]>
Subject: slab: document kmalloc_order

---

 mm/slab_common.c |    5 +++++
 1 file changed, 5 insertions(+)
mm/slab_common.c renamed from mm/slab_common.c~slab-document-kmalloc_order +5 -0
diff -puN mm/slab_common.c~slab-document-kmalloc_order 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 [email protected] 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