diff options
author | Minchan Kim <minchan.kim@gmail.com> | 2010-04-14 16:58:36 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-05-22 09:57:31 +0200 |
commit | 6b65aaf3027c4e02b42aaefd900aa79136a30681 (patch) | |
tree | a5a9b5cb55af436f9216729b734c92ee919a66d1 /mm/slab.c | |
parent | slub: __kmalloc_node_track_caller should trace kmalloc_large_node case (diff) | |
download | linux-6b65aaf3027c4e02b42aaefd900aa79136a30681.tar.xz linux-6b65aaf3027c4e02b42aaefd900aa79136a30681.zip |
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 <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>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions