From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754103AbYIXXps (ORCPT ); Wed, 24 Sep 2008 19:45:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752506AbYIXXpk (ORCPT ); Wed, 24 Sep 2008 19:45:40 -0400 Received: from extu-mxob-1.symantec.com ([216.10.194.28]:56288 "EHLO extu-mxob-1.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbYIXXpk (ORCPT ); Wed, 24 Sep 2008 19:45:40 -0400 Date: Thu, 25 Sep 2008 00:43:37 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: David Howells cc: Matt Mackall , Nick Piggin , Dave Hansen , Jeremy Fitzhardinge , Ingo Molnar , Andrew Morton , a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, Dave Hansen Subject: Re: [patch] mm: tiny-shmem fix lor, mmap_sem vs i_mutex In-Reply-To: <30202.1222286376@redhat.com> Message-ID: References: <20080923053228.GA5825@wotan.suse.de> <20080914073906.GA6184@elte.hu> <20080914004442.4f8e851f.akpm@linux-foundation.org> <20080914080631.GA10720@elte.hu> <20080914221231.GG27080@wotan.suse.de> <20080917131419.e6b7622e.akpm@linux-foundation.org> <20080918111226.GD29968@elte.hu> <48D2ABFD.3040103@goop.org> <1221772310.4779.29.camel@calx> <1221877119.8533.2.camel@nimitz> <13787.1222095249@redhat.com> <22749.1222280305@redhat.com> <1222280971.4425.42.camel@calx> <30202.1222286376@redhat.com> 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 On Wed, 24 Sep 2008, David Howells wrote: > Hugh Dickins wrote: > > > If we're hell-bent on #ifdefs throughout mm/shmem.c, I wouldn't > > mind scattering some CONFIG_SWAPs in there too, would cut out > > lots of overhead when swap unconfigured. But again, how ugly? > > That might be necessary: NOMMU doesn't support swap. Matt would be dealing with that aspect in his unification: SHMEM depends on MMU, so !MMU gives you TINY_SHMEM - I'm sure he wouldn't have any of the SWAP stuff in the TINY_SHMEM part of his unification. But there's still value in adding CONFIG_SWAPs too (if the #ifdefs were tolerable, by no means clear). Hugh