Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760153AbZCMWub (ORCPT ); Fri, 13 Mar 2009 18:50:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758348AbZCMWuR (ORCPT ); Fri, 13 Mar 2009 18:50:17 -0400 Received: from cmpxchg.org ([85.214.51.133]:52241 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754879AbZCMWuQ (ORCPT ); Fri, 13 Mar 2009 18:50:16 -0400 Date: Fri, 13 Mar 2009 23:49:08 +0100 From: Johannes Weiner To: David Howells Cc: KOSAKI Motohiro , Minchan Kim , Andrew Morton , torvalds@linux-foundation.org, peterz@infradead.org, Enrik.Berkhan@ge.com, uclinux-dev@uclinux.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rik van Riel , Lee Schermerhorn Subject: Re: [PATCH] NOMMU: Pages allocated to a ramfs inode's pagecache may get wrongly discarded Message-ID: <20090313224908.GA2271@cmpxchg.org> References: <20090312100049.43A3.A69D9226@jp.fujitsu.com> <20090311170207.1795cad9.akpm@linux-foundation.org> <28c262360903111735s2b0c43a3pd48fcf8d55416ae3@mail.gmail.com> <27074.1236945182@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27074.1236945182@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 797 Lines: 20 On Fri, Mar 13, 2009 at 11:53:02AM +0000, David Howells wrote: > KOSAKI Motohiro wrote: > > > David, Could you please try following patch if you have NOMMU machine? > > it is straightforward porting to nommu. > > Is this patch actually sufficient, though? Surely it requires an alteration > to ramfs to mark the page as being unevictable? ramfs already marks the whole address space of each inode as unevictable, see ramfs_get_inode(). The reclaim code will regard this when the config option is enabled. Hannes -- 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/