Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 6484eb3 ("page allocator: do not check NUMA node ID when the caller knows the node is valid") did for the page allocator. Cc: Christoph Lameter <[email protected]> Reviewed-by: KAMEZAWA Hiroyuki <[email protected]> Reviewed-by: Mel Gorman <[email protected]> Signed-off-by: Minchan Kim <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
- Loading branch information