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
chips
devices
lpddr
maps
nand
onenand
tests
ubi
Kconfig -rw-r--r-- 11.3 KB
Makefile -rw-r--r-- 1.1 KB
afs.c -rw-r--r-- 6.3 KB
ar7part.c -rw-r--r-- 4.1 KB
bcm63xxpart.c -rw-r--r-- 6.0 KB
cmdlinepart.c -rw-r--r-- 9.9 KB
ftl.c -rw-r--r-- 31.5 KB
inftlcore.c -rw-r--r-- 24.5 KB
inftlmount.c -rw-r--r-- 22.5 KB
mtd_blkdevs.c -rw-r--r-- 13.4 KB
mtdblock.c -rw-r--r-- 9.9 KB
mtdblock_ro.c -rw-r--r-- 2.4 KB
mtdchar.c -rw-r--r-- 27.2 KB
mtdconcat.c -rw-r--r-- 23.0 KB
mtdcore.c -rw-r--r-- 29.2 KB
mtdcore.h -rw-r--r-- 840 bytes
mtdoops.c -rw-r--r-- 12.2 KB
mtdpart.c -rw-r--r-- 20.5 KB
mtdsuper.c -rw-r--r-- 5.5 KB
mtdswap.c -rw-r--r-- 35.6 KB
nftlcore.c -rw-r--r-- 23.0 KB
nftlmount.c -rw-r--r-- 26.0 KB
ofpart.c -rw-r--r-- 4.0 KB
redboot.c -rw-r--r-- 8.4 KB
rfd_ftl.c -rw-r--r-- 18.3 KB
sm_ftl.c -rw-r--r-- 30.3 KB
sm_ftl.h -rw-r--r-- 2.5 KB
ssfdc.c -rw-r--r-- 11.3 KB

back to top