Revision 238305bb4d418c95977162ba13c11880685fc731 authored by Johannes Weiner on 29 May 2012, 22:06:36 UTC, committed by Linus Torvalds on 29 May 2012, 23:22:22 UTC
alloc_bootmem_section() derives allocation area constraints from the
specified sparsemem section.  This is a bit specific for a generic memory
allocator like bootmem, though, so move it over to sparsemem.

As __alloc_bootmem_node_nopanic() already retries failed allocations with
relaxed area constraints, the fallback code in sparsemem.c can be removed
and the code becomes a bit more compact overall.

[akpm@linux-foundation.org: fix build]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e907991
History
File Mode Size
Kconfig -rw-r--r-- 12.2 KB
Makefile -rw-r--r-- 735 bytes
block2mtd.c -rw-r--r-- 10.2 KB
doc2000.c -rw-r--r-- 31.6 KB
doc2001.c -rw-r--r-- 24.3 KB
doc2001plus.c -rw-r--r-- 30.8 KB
docecc.c -rw-r--r-- 15.5 KB
docg3.c -rw-r--r-- 58.3 KB
docg3.h -rw-r--r-- 10.2 KB
docprobe.c -rw-r--r-- 9.8 KB
lart.c -rw-r--r-- 18.4 KB
m25p80.c -rw-r--r-- 27.0 KB
ms02-nv.c -rw-r--r-- 7.2 KB
ms02-nv.h -rw-r--r-- 3.9 KB
mtd_dataflash.c -rw-r--r-- 24.2 KB
mtdram.c -rw-r--r-- 3.6 KB
phram.c -rw-r--r-- 6.0 KB
pmc551.c -rw-r--r-- 25.4 KB
slram.c -rw-r--r-- 8.7 KB
spear_smi.c -rw-r--r-- 29.7 KB
sst25l.c -rw-r--r-- 9.8 KB

back to top