Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754751AbYCMJNg (ORCPT ); Thu, 13 Mar 2008 05:13:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752068AbYCMJNZ (ORCPT ); Thu, 13 Mar 2008 05:13:25 -0400 Received: from mtagate1.de.ibm.com ([195.212.29.150]:7932 "EHLO mtagate1.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085AbYCMJNY (ORCPT ); Thu, 13 Mar 2008 05:13:24 -0400 Subject: Re: [patch 3/6] Guest page hinting: mlocked pages. From: Martin Schwidefsky Reply-To: schwidefsky@de.ibm.com To: Rusty Russell Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.osdl.org, akpm@osdl.org, nickpiggin@yahoo.com.au, frankeh@watson.ibm.com, hugh@veritas.com In-Reply-To: <200803131027.29378.rusty@rustcorp.com.au> References: <20080312132132.520833247@de.ibm.com> <20080312132703.689828503@de.ibm.com> <200803131027.29378.rusty@rustcorp.com.au> Content-Type: text/plain Organization: IBM Corporation Date: Thu, 13 Mar 2008 10:13:17 +0100 Message-Id: <1205399597.26537.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 30 On Thu, 2008-03-13 at 10:27 +1100, Rusty Russell wrote: > On Thursday 13 March 2008 00:21:35 Martin Schwidefsky wrote: > > --- linux-2.6.orig/include/linux/fs.h > > +++ linux-2.6/include/linux/fs.h > > @@ -513,6 +513,9 @@ struct address_space { > > spinlock_t private_lock; /* for use by the address_space */ > > struct list_head private_list; /* ditto */ > > struct address_space *assoc_mapping; /* ditto */ > > +#ifdef CONFIG_PAGE_STATES > > + unsigned int mlocked; /* set if VM_LOCKED vmas present */ > > +#endif > > } __attribute__((aligned(sizeof(long)))); > > Minor nit: I think this would be better under private_lock where it wouldn't > consume any extra space on 64-bit. Yes, makes sense. I moved the #ifdef. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- 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/