]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix alloc_bootmem_core to use fast searching for all nodes
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 11 Mar 2008 06:23:42 +0000 (23:23 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 20:51:07 +0000 (22:51 +0200)
commit6271b90ebd90465fd83b190a19c9b9de1ec915c6
tree5838f3a78b7697c0d0a7d2ae88b8424226a92067
parentf6ab40d94d81c79b22bd2db0b5dd23d14943b479
mm: fix alloc_bootmem_core to use fast searching for all nodes

Make the nodes other than node 0 use bdata->last_success for fast
search too.

We need to use __alloc_bootmem_core() for vmemmap allocation for other
nodes when numa and sparsemem/vmemmap are enabled.

Also, make fail_block path increase i with incr only after ALIGN
to avoid extra increase when size is larger than align.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
mm/bootmem.c