Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965082AbYAaWQ4 (ORCPT ); Thu, 31 Jan 2008 17:16:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964931AbYAaWQS (ORCPT ); Thu, 31 Jan 2008 17:16:18 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:40540 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964891AbYAaWQQ (ORCPT ); Thu, 31 Jan 2008 17:16:16 -0500 Date: Thu, 31 Jan 2008 14:16:10 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Andrea Arcangeli cc: Robin Holt , Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com Subject: Re: mmu_notifier: reduce size of mm_struct if !CONFIG_MMU_NOTIFIER In-Reply-To: Message-ID: References: <20080131045750.855008281@sgi.com> <20080131045812.785269387@sgi.com> <20080131123118.GK7185@v2.random> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1120 Lines: 34 mmu_notifier: Reduce size of mm_struct if !CONFIG_MMU_NOTIFIER Andrea and Peter had a concern about this. Use an #ifdef to make the mmu_notifer_head structure empty if we have no notifier. That allows the use of the structure in inline functions (which allows parameter verification even if !CONFIG_MMU_NOTIFIER) Signed-off-by: Christoph Lameter --- include/linux/mm_types.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/include/linux/mm_types.h =================================================================== --- linux-2.6.orig/include/linux/mm_types.h 2008-01-31 14:03:23.000000000 -0800 +++ linux-2.6/include/linux/mm_types.h 2008-01-31 14:03:38.000000000 -0800 @@ -154,7 +154,9 @@ struct vm_area_struct { }; struct mmu_notifier_head { +#ifdef CONFIG_MMU_NOTIFIER struct hlist_head head; +#endif }; struct mm_struct { -- 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/