From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Tue, 5 Jul 2011 13:30:07 +0200 Subject: [PATCH 2/8] mm: alloc_contig_freed_pages() added In-Reply-To: <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> References: <1309851710-3828-1-git-send-email-m.szyprowski@samsung.com> <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> Message-ID: <201107051330.07443.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tuesday 05 July 2011, Marek Szyprowski wrote: > From: KAMEZAWA Hiroyuki > > This commit introduces alloc_contig_freed_pages() function > which allocates (ie. removes from buddy system) free pages > in range. Caller has to guarantee that all pages in range > are in buddy system. > > Along with this function, a free_contig_pages() function is > provided which frees all (or a subset of) pages allocated > with alloc_contig_free_pages(). > > Michal Nazarewicz has modified the function to make it easier > to allocate not MAX_ORDER_NR_PAGES aligned pages by making it > return pfn of one-past-the-last allocated page. > > Signed-off-by: KAMEZAWA Hiroyuki > Signed-off-by: Michal Nazarewicz > Signed-off-by: Kyungmin Park > Signed-off-by: Marek Szyprowski > CC: Michal Nazarewicz Acked-by: Arnd Bergmann From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932235Ab1GELaa (ORCPT ); Tue, 5 Jul 2011 07:30:30 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:53764 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932176Ab1GELa2 (ORCPT ); Tue, 5 Jul 2011 07:30:28 -0400 From: Arnd Bergmann To: Marek Szyprowski Subject: Re: [PATCH 2/8] mm: alloc_contig_freed_pages() added Date: Tue, 5 Jul 2011 13:30:07 +0200 User-Agent: KMail/1.12.2 (Linux/2.6.37; KDE/4.3.2; x86_64; ; ) 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 , Andrew Morton , KAMEZAWA Hiroyuki , Ankita Garg , Daniel Walker , Mel Gorman , Jesse Barker , Jonathan Corbet , Chunsang Jeong References: <1309851710-3828-1-git-send-email-m.szyprowski@samsung.com> <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201107051330.07443.arnd@arndb.de> X-Provags-ID: V02:K0:SBylVMCIVgmp64AdnGG+Z1VS5f3TnsR83S41X4rmjyx EkPNTP6eCfYPHwUAkCVCAdVRi2Q3FLzP7yYSX53+jDrkKOqarC cxZi9ivpT7C94b/o1VGuyPE6+gE16amuE3UUvL+z7slNWB0hDH HOGvPOZrV5DkupPcZ8ZrAvUp+KyEdVLHw6gJof6I87lrThH0r9 ls/rizJ+nH9ZJugyrKdcw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 05 July 2011, Marek Szyprowski wrote: > From: KAMEZAWA Hiroyuki > > This commit introduces alloc_contig_freed_pages() function > which allocates (ie. removes from buddy system) free pages > in range. Caller has to guarantee that all pages in range > are in buddy system. > > Along with this function, a free_contig_pages() function is > provided which frees all (or a subset of) pages allocated > with alloc_contig_free_pages(). > > Michal Nazarewicz has modified the function to make it easier > to allocate not MAX_ORDER_NR_PAGES aligned pages by making it > return pfn of one-past-the-last allocated page. > > Signed-off-by: KAMEZAWA Hiroyuki > Signed-off-by: Michal Nazarewicz > Signed-off-by: Kyungmin Park > Signed-off-by: Marek Szyprowski > CC: Michal Nazarewicz Acked-by: Arnd Bergmann From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by kanga.kvack.org (Postfix) with ESMTP id 1CB64900125 for ; Tue, 5 Jul 2011 07:30:31 -0400 (EDT) From: Arnd Bergmann Subject: Re: [PATCH 2/8] mm: alloc_contig_freed_pages() added Date: Tue, 5 Jul 2011 13:30:07 +0200 References: <1309851710-3828-1-git-send-email-m.szyprowski@samsung.com> <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1309851710-3828-3-git-send-email-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201107051330.07443.arnd@arndb.de> 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 , Andrew Morton , KAMEZAWA Hiroyuki , Ankita Garg , Daniel Walker , Mel Gorman , Jesse Barker , Jonathan Corbet , Chunsang Jeong On Tuesday 05 July 2011, Marek Szyprowski wrote: > From: KAMEZAWA Hiroyuki > > This commit introduces alloc_contig_freed_pages() function > which allocates (ie. removes from buddy system) free pages > in range. Caller has to guarantee that all pages in range > are in buddy system. > > Along with this function, a free_contig_pages() function is > provided which frees all (or a subset of) pages allocated > with alloc_contig_free_pages(). > > Michal Nazarewicz has modified the function to make it easier > to allocate not MAX_ORDER_NR_PAGES aligned pages by making it > return pfn of one-past-the-last allocated page. > > Signed-off-by: KAMEZAWA Hiroyuki > Signed-off-by: Michal Nazarewicz > Signed-off-by: Kyungmin Park > Signed-off-by: Marek Szyprowski > CC: Michal Nazarewicz Acked-by: Arnd Bergmann -- 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