]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Use alloc_pages_exact_node() for page allocation
authorMinchan Kim <minchan.kim@gmail.com>
Wed, 14 Apr 2010 14:58:36 +0000 (23:58 +0900)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sat, 22 May 2010 07:57:31 +0000 (10:57 +0300)
commitcd805b6935f911290f8d92a8157db0a64890d863
treea5a9b5cb55af436f9216729b734c92ee919a66d1
parent2d6cdba3466495e261a117c389fb200a04f2d43e
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
17af97415ebf72e1ef ("page allocator: do not check NUMA node ID when the caller
knows the node is valid") did for the page allocator.

Cc: Christoph Lameter <cl@linux-foundation.org>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c