From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx111.postini.com [74.125.245.111]) by kanga.kvack.org (Postfix) with SMTP id 1D51D6B0379 for ; Mon, 25 Jun 2012 13:19:44 -0400 (EDT) Received: by dakp5 with SMTP id p5so6906102dak.14 for ; Mon, 25 Jun 2012 10:19:43 -0700 (PDT) Date: Mon, 25 Jun 2012 10:19:39 -0700 From: Greg Kroah-Hartman Subject: Re: [PATCH 2/3] zsmalloc: add generic path and remove x86 dependency Message-ID: <20120625171939.GA29371@kroah.com> References: <1340640878-27536-1-git-send-email-sjenning@linux.vnet.ibm.com> <1340640878-27536-3-git-send-email-sjenning@linux.vnet.ibm.com> <20120625165915.GA20464@kroah.com> <4FE89BA1.3030709@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FE89BA1.3030709@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Seth Jennings Cc: devel@driverdev.osuosl.org, Dan Magenheimer , Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Minchan Kim , Andrew Morton , Robert Jennings , Nitin Gupta On Mon, Jun 25, 2012 at 12:10:57PM -0500, Seth Jennings wrote: > On 06/25/2012 11:59 AM, Greg Kroah-Hartman wrote: > > On Mon, Jun 25, 2012 at 11:14:37AM -0500, Seth Jennings wrote: > >> This patch adds generic pages mapping methods that > >> work on all archs in the absence of support for > >> local_tlb_flush_kernel_range() advertised by the > >> arch through __HAVE_LOCAL_TLB_FLUSH_KERNEL_RANGE > > > > Is this #define something that other arches define now? Or is this > > something new that you are adding here? > > Something new I'm adding. Ah, ok. > The precedent for this approach is the __HAVE_ARCH_* defines > that let the arch independent stuff know if a generic > function needs to be defined or if there is an arch specific > function. > > You can "grep -R __HAVE_ARCH_* arch/x86/" to see the ones > that already exist. > > I guess I should have called it > __HAVE_ARCH_LOCAL_TLB_FLUSH_KERNEL_RANGE though, not > __HAVE_LOCAL_TLB_FLUSH_KERNEL_RANGE. You need to get the mm developers to agree with this before I can take it. But, why even depend on this? Can't you either live without it, or just implement it for all arches somehow? thanks, greg k-h -- 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/ . Don't email: email@kvack.org