From: Gavin Shan Date: Tue, 31 Jul 2012 23:46:02 +0000 (-0700) Subject: mm/sparse: optimize sparse_index_alloc X-Git-Tag: v3.6-rc1~24^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b760e64a64c8940cdccd0ba6fce19a9bd010d20;p=pandora-kernel.git 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 Reviewed-by: Michal Hocko Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed