+ kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 19 Mar 2014 16:07:39 -0700
The patch titled
Subject: kmemcheck: move hook into __alloc_pages_nodemask() for the page allocator
has been added to the -mm tree. Its filename is
kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator.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: Xishi Qiu <[email protected]>
Subject: kmemcheck: move hook into __alloc_pages_nodemask() for the page allocator
Now kmemcheck_pagealloc_alloc() is only called by __alloc_pages_slowpath(). __alloc_pages_nodemask()
__alloc_pages_slowpath()
kmemcheck_pagealloc_alloc()
And the page will not be tracked by kmemcheck in the following path. __alloc_pages_nodemask()
get_page_from_freelist()
So move kmemcheck_pagealloc_alloc() into __alloc_pages_nodemask(), like this:__alloc_pages_nodemask()
... get_page_from_freelist() if (!page) __alloc_pages_slowpath() kmemcheck_pagealloc_alloc() ...
---
mm/page_alloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~kmemcheck-move-hook-into-__alloc_pages_nodemask-for-the-page-allocator +0 -3
@@ -2692,11 +2692,7 @@ rebalance: nopage:warn_alloc_failed (gfp_mask, order,NULL ); -return page; got_pg: -if (kmemcheck_enabled) -kmemcheck_pagealloc_alloc (page, order, gfp_mask);