Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932478AbXBSSl2 (ORCPT ); Mon, 19 Feb 2007 13:41:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932463AbXBSSl2 (ORCPT ); Mon, 19 Feb 2007 13:41:28 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:50353 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932478AbXBSSl1 (ORCPT ); Mon, 19 Feb 2007 13:41:27 -0500 Subject: Re: [PATCH 1/7] Introduce the pagetable_operations and associated helper macros. From: Arjan van de Ven To: Adam Litke Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <20070219183133.27318.92920.stgit@localhost.localdomain> References: <20070219183123.27318.27319.stgit@localhost.localdomain> <20070219183133.27318.92920.stgit@localhost.localdomain> Content-Type: text/plain Organization: Intel International BV Date: Mon, 19 Feb 2007 19:41:23 +0100 Message-Id: <1171910483.3531.87.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 28 On Mon, 2007-02-19 at 10:31 -0800, Adam Litke wrote: > Signed-off-by: Adam Litke > --- > > include/linux/mm.h | 25 +++++++++++++++++++++++++ > 1 files changed, 25 insertions(+), 0 deletions(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 2d2c08d..a2fa66d 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -98,6 +98,7 @@ struct vm_area_struct { > > /* Function pointers to deal with this struct. */ > struct vm_operations_struct * vm_ops; > + struct pagetable_operations_struct * pagetable_ops; > please make it at least const, those things have no business ever being written to right? And by making them const the compiler helps catch that, and as bonus the data gets moved to rodata so that it won't share cachelines with anything that gets dirty - 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/