Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbYAIEYB (ORCPT ); Tue, 8 Jan 2008 23:24:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752906AbYAIEXy (ORCPT ); Tue, 8 Jan 2008 23:23:54 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:47965 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752482AbYAIEXx (ORCPT ); Tue, 8 Jan 2008 23:23:53 -0500 Date: Wed, 9 Jan 2008 13:26:15 +0900 From: KAMEZAWA Hiroyuki To: Rik van Riel Cc: Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Lee Schermerhorn Subject: Re: [patch 03/19] define page_file_cache() function Message-Id: <20080109132615.8fbaef05.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20080108172856.4196bd4b@bree.surriel.com> References: <20080108205939.323955454@redhat.com> <20080108205959.952424899@redhat.com> <20080108172856.4196bd4b@bree.surriel.com> Organization: Fujitsu X-Mailer: Sylpheed 2.4.2 (GTK+ 2.10.11; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1148 Lines: 36 On Tue, 8 Jan 2008 17:28:56 -0500 Rik van Riel wrote: > On Tue, 8 Jan 2008 14:18:40 -0800 (PST) > Christoph Lameter wrote: > > > On Tue, 8 Jan 2008, Rik van Riel wrote: > > > > > Define page_file_cache() function to answer the question: > > > is page backed by a file? > > > > > +static inline int page_file_cache(struct page *page) > > > +{ > > > + if (PageSwapBacked(page)) > > > + return 0; > > > > Could we call this PageNotFileBacked or so? PageSwapBacked is true for > > pages that are RAM based. Its a bit confusing. > > PageNotFileBacked confuses me a little, since shared memory segments live > in tmpfs and are kinda sorta file backed, but go to swap instead of to a > filesystem when there is memory pressure. > How about PageIsNotCache() ? :) When a page is a cache, there is an original data somewhere and can be dropped out. Thanks, -Kame -- 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/