Gavin Shan 5b760e64a6 mm/sparse: optimize sparse_index_alloc
With CONFIG_SPARSEMEM_EXTREME, the two levels of memory section
descriptors are allocated from slab or bootmem.  When allocating from
slab, let slab/bootmem allocator clear the memory chunk.  We needn't clear
it explicitly.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-31 18:42:49 -07:00
..
2012-05-29 23:28:33 -04:00
2012-01-03 22:54:56 -05:00
2011-07-26 16:49:47 -07:00
2012-07-31 18:42:43 -07:00
2010-05-21 18:31:21 -04:00
2012-06-04 17:17:31 -04:00
2012-07-31 18:42:43 -07:00
2012-06-20 14:39:36 -07:00
2012-06-20 14:39:36 -07:00
2011-05-20 12:50:29 -07:00
2012-05-29 16:22:19 -07:00
2012-07-14 16:34:47 +04:00
2012-07-12 10:13:22 +03:00
2012-05-29 16:22:23 -07:00
2012-06-01 10:37:18 -04:00
2012-07-31 18:42:39 -07:00