]> Git Repo - linux.git/commit
mm: remove sparsemem allocation details from the bootmem allocator
authorJohannes Weiner <[email protected]>
Tue, 29 May 2012 22:06:36 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:22 +0000 (16:22 -0700)
commit238305bb4d418c95977162ba13c11880685fc731
tree43f578a711e85af44b1b1b43e8f32ef86490486f
parente9079911e6c8fb7882de142de76f3ee49b54e000
mm: remove sparsemem allocation details from the bootmem allocator

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.

[[email protected]: fix build]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Acked-by: David S. Miller <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Gavin Shan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/bootmem.h
mm/bootmem.c
mm/nobootmem.c
mm/sparse.c
This page took 0.056245 seconds and 4 git commands to generate.