From: Michal Nazarewicz Date: Thu, 29 Dec 2011 12:09:50 +0000 (+0100) Subject: mm: page_alloc: introduce alloc_contig_range() X-Git-Tag: sz_154~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa5b11012ea96c112f1fedbc8d8dc40ddc0973b;p=pandora-kernel.git mm: page_alloc: introduce alloc_contig_range() This commit adds the alloc_contig_range() function which tries to allocate given range of pages. It tries to migrate all already allocated pages that fall in the range thus freeing them. Once all pages in the range are freed they are removed from the buddy system thus allocated for the caller to use. Signed-off-by: Michal Nazarewicz Signed-off-by: Marek Szyprowski Acked-by: Mel Gorman Reviewed-by: KAMEZAWA Hiroyuki Tested-by: Rob Clark Tested-by: Ohad Ben-Cohen Tested-by: Benjamin Gaignard Tested-by: Robert Nelson Tested-by: Barry Song --- Reading git-diff-tree failed