From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933425Ab2GCUbV (ORCPT ); Tue, 3 Jul 2012 16:31:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15541 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754990Ab2GCUbU (ORCPT ); Tue, 3 Jul 2012 16:31:20 -0400 Date: Tue, 3 Jul 2012 22:30:32 +0200 From: Andrea Arcangeli To: Rik van Riel Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hillf Danton , Dan Smith , Peter Zijlstra , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Subject: Re: [PATCH 05/40] autonuma: define _PAGE_NUMA_PTE and _PAGE_NUMA_PMD Message-ID: <20120703203032.GV3726@redhat.com> References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> <1340888180-15355-6-git-send-email-aarcange@redhat.com> <4FEDBB1F.9030001@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FEDBB1F.9030001@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rik, On Fri, Jun 29, 2012 at 10:26:39AM -0400, Rik van Riel wrote: > On 06/28/2012 08:55 AM, Andrea Arcangeli wrote: > > > +/* > > + * Cannot be set on pte. The fact it's in between _PAGE_FILE and > > + * _PAGE_PROTNONE avoids having to alter the swp entries. > > + */ > > +#define _PAGE_NUMA_PTE _PAGE_PSE > > +/* > > + * Cannot be set on pmd, if transparent hugepages will be swapped out > > + * the swap entry offset must start above it. > > + */ > > +#define _PAGE_NUMA_PMD _PAGE_UNUSED2 > > Those comments only tell us what the flags can NOT be > used for, not what they are actually used for. You can find an updated version of the comments here: http://git.kernel.org/?p=linux/kernel/git/andrea/aa.git;a=commitdiff;h=927ca960d78fefe6fa6aaa260a5b35496abafec5 Thanks for all the feedback, I didn't reply immediately but I'm handling all the feedback and many more bits have been improved already in the autonuma branch. I will post them separately for further review.