From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with SMTP id C8B5C6B007B for ; Tue, 26 Jan 2010 07:31:27 -0500 (EST) Date: Tue, 26 Jan 2010 13:30:37 +0100 From: Andrea Arcangeli Subject: Re: [PATCH 01 of 31] define MADV_HUGEPAGE Message-ID: <20100126123037.GE30452@random.random> References: <20100126114101.GB16468@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100126114101.GB16468@csn.ul.ie> Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Andi Kleen , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , Andrew Morton , bpicco@redhat.com, Christoph Hellwig , KOSAKI Motohiro List-ID: On Tue, Jan 26, 2010 at 11:41:01AM +0000, Mel Gorman wrote: > On Mon, Jan 25, 2010 at 06:18:52PM +0100, Andrea Arcangeli wrote: > > From: Andrea Arcangeli > > > > Define MADV_HUGEPAGE. > > > > Signed-off-by: Andrea Arcangeli > > --- > > > > diff --git a/include/asm-generic/mman-common.h b/include/asm-generic/mman-common.h > > --- a/include/asm-generic/mman-common.h > > +++ b/include/asm-generic/mman-common.h > > @@ -45,6 +45,8 @@ > > #define MADV_MERGEABLE 12 /* KSM may merge identical pages */ > > #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */ > > > > +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */ > > + > > The use of 14 collides with parisc > > $ git grep MADV_ | grep define | grep 14 > arch/parisc/include/asm/mman.h:#define MADV_16K_PAGES 14 /* Use 16K pages */ Very error prone that you can register in arch file, there are 4 billions MADV_ available, the arch files shall be removed and it should all be defined in mman-common.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