From: Minchan Kim Date: Wed, 14 Apr 2010 14:58:36 +0000 (+0900) Subject: slub: Use alloc_pages_exact_node() for page allocation X-Git-Tag: v2.6.35-rc1~421^2^6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b65aaf3027c4e02b42aaefd900aa79136a30681;p=pandora-kernel.git slub: Use alloc_pages_exact_node() for page allocation The alloc_slab_page() in SLUB uses alloc_pages() if node is '-1'. This means that node validity check in alloc_pages_node is unnecessary and we can use alloc_pages_exact_node() to avoid comparison and branch as commit 6484eb3e2a81807722 ("page allocator: do not check NUMA node ID when the caller knows the node is valid") did for the page allocator. Cc: Christoph Lameter Reviewed-by: KAMEZAWA Hiroyuki Reviewed-by: Mel Gorman Signed-off-by: Minchan Kim Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed