From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992572AbXCWVKv (ORCPT ); Fri, 23 Mar 2007 17:10:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992573AbXCWVKv (ORCPT ); Fri, 23 Mar 2007 17:10:51 -0400 Received: from gate.crashing.org ([63.228.1.57]:54270 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992572AbXCWVKu (ORCPT ); Fri, 23 Mar 2007 17:10:50 -0400 Subject: Re: [patch] rfc: introduce /dev/hugetlb From: Benjamin Herrenschmidt To: Ken Chen Cc: Adam Litke , Andrew Morton , Arjan van de Ven , William Lee Irwin III , Christoph Hellwig , linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Date: Sat, 24 Mar 2007 08:08:54 +1100 Message-Id: <1174684134.10836.74.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > -#ifdef HAVE_ARCH_HUGETLB_UNMAPPED_AREA > -unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr, > - unsigned long len, unsigned long pgoff, unsigned long flags); > -#else > -static unsigned long > +unsigned long > hugetlb_get_unmapped_area(struct file *file, unsigned long addr, > unsigned long len, unsigned long pgoff, unsigned long flags) > { > @@ -150,7 +145,6 @@ full_search: > addr = ALIGN(vma->vm_end, HPAGE_SIZE); > } > } > -#endif WTF ? get_unmapped_area() -has- to be arch in some platforms like power... I'm trying to improve the whole get_unmapped_area() to better handle multiple constraints (cacheability, page size, ...) though I haven't quite yet settled on an interface I like. Ben.