summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2015-02-11 15:25:07 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-11 17:06:01 -0800
commit23f086f962e67a1b8a508c0d8e86b7833c941564 (patch)
treee76cfd9b87fe025fde008bbc3d8520cc7184a96c /tools
parent91fbdc0f89807bb97792ea6893717a8d3154b871 (diff)
downloadop-kernel-dev-23f086f962e67a1b8a508c0d8e86b7833c941564.zip
op-kernel-dev-23f086f962e67a1b8a508c0d8e86b7833c941564.tar.gz
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() ... Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Cc: Vegard Nossum <vegard.nossum@oracle.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Li Zefan <lizefan@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud