Messages in this thread | | | Date | Wed, 21 Apr 2010 09:15:52 -0500 (CDT) | From | Christoph Lameter <> | Subject | Re: [PATCH 2/6] change alloc function in pcpu_alloc_pages |
| |
On Tue, 20 Apr 2010, Mel Gorman wrote:
> alloc_pages_exact_node() avoids a branch in a hot path that is checking for > something the caller already knows. That's the reason it exists.
We can avoid alloc_pages_exact_node() by making all callers of alloc_pages_node() never use -1. -1 is ambiguous and only rarely will a caller pass that to alloc_pages_node().
| |