Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757511Ab0LNX4w (ORCPT ); Tue, 14 Dec 2010 18:56:52 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:39308 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906Ab0LNX4u (ORCPT ); Tue, 14 Dec 2010 18:56:50 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Wed, 15 Dec 2010 08:50:47 +0900 From: KAMEZAWA Hiroyuki To: Michal Nazarewicz Cc: Michal Nazarewicz , Andrew Morton , Ankita Garg , BooJin Kim , Daniel Walker , Johan MOSSBERG , Marek Szyprowski , Mel Gorman , "Paul E. McKenney" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, Kyungmin Park Subject: Re: [PATCHv7 08/10] mm: cma: Contiguous Memory Allocator added Message-Id: <20101215085047.251778be.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <87zks8fyb0.fsf@erwin.mina86.com> References: <20101214102401.37bf812d.kamezawa.hiroyu@jp.fujitsu.com> <87zks8fyb0.fsf@erwin.mina86.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 24 On Tue, 14 Dec 2010 11:23:15 +0100 Michal Nazarewicz wrote: > > Hmm, it seems __cm_alloc() and __cm_migrate() has no special codes for CMA. > > I'd like reuse this for my own contig page allocator. > > So, could you make these function be more generic (name) ? > > as > > __alloc_range(start, size, mirate_type); > > > > Then, what I have to do is only to add "search range" functions. > > Sure thing. I'll post it tomorrow or Friday. How about > alloc_contig_range() maybe? > That sounds great. Thank you. -Kame -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/