On Fri, 10 Feb 2012 18:32:21 +0100 Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> wrote: > From: Michal Nazarewicz <mina86@xxxxxxxxxx> > > 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 <mina86@xxxxxxxxxx> > Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> > Acked-by: Mel Gorman <mel@xxxxxxxxx> > Tested-by: Rob Clark <rob.clark@xxxxxxxxxx> > Tested-by: Ohad Ben-Cohen <ohad@xxxxxxxxxx> > Tested-by: Benjamin Gaignard <benjamin.gaignard@xxxxxxxxxx> Hmm, I may have to refactoring memory hot unplug code using this :) Thanks, Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>