From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx123.postini.com [74.125.245.123]) by kanga.kvack.org (Postfix) with SMTP id E622B6B13F1 for ; Tue, 14 Feb 2012 02:55:53 -0500 (EST) Received: from m3.gw.fujitsu.co.jp (unknown [10.0.50.73]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 7EDE53EE0BD for ; Tue, 14 Feb 2012 16:55:52 +0900 (JST) Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 577DE45DEB4 for ; Tue, 14 Feb 2012 16:55:52 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (s3.gw.fujitsu.co.jp [10.0.50.93]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 3CEB645DEBB for ; Tue, 14 Feb 2012 16:55:52 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 2084E1DB8040 for ; Tue, 14 Feb 2012 16:55:52 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.240.81.147]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id BBED31DB803C for ; Tue, 14 Feb 2012 16:55:51 +0900 (JST) Date: Tue, 14 Feb 2012 16:54:10 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCHv21 06/16] mm: page_alloc: introduce alloc_contig_range() Message-Id: <20120214165410.fb8b68ea.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1328895151-5196-7-git-send-email-m.szyprowski@samsung.com> References: <1328895151-5196-1-git-send-email-m.szyprowski@samsung.com> <1328895151-5196-7-git-send-email-m.szyprowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Michal Nazarewicz , Kyungmin Park , Russell King , Andrew Morton , Daniel Walker , Mel Gorman , Arnd Bergmann , Jesse Barker , Jonathan Corbet , Shariq Hasnain , Chunsang Jeong , Dave Hansen , Benjamin Gaignard , Rob Clark , Ohad Ben-Cohen On Fri, 10 Feb 2012 18:32:21 +0100 Marek Szyprowski wrote: > From: Michal Nazarewicz > > 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 > Tested-by: Rob Clark > Tested-by: Ohad Ben-Cohen > Tested-by: Benjamin Gaignard Hmm, I may have to refactoring memory hot unplug code using this :) Thanks, Reviewed-by: KAMEZAWA Hiroyuki -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. 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: email@kvack.org