From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932250AbVHKEo7 (ORCPT ); Thu, 11 Aug 2005 00:44:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932253AbVHKEo7 (ORCPT ); Thu, 11 Aug 2005 00:44:59 -0400 Received: from smtp.osdl.org ([65.172.181.4]:32992 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932251AbVHKEo6 (ORCPT ); Thu, 11 Aug 2005 00:44:58 -0400 Date: Thu, 11 Aug 2005 14:44:41 +1000 From: Andrew Morton To: Magnus Damm Cc: mel@csn.ul.ie, linux-kernel@vger.kernel.org Subject: Re: How to reclaim inode pages on demand Message-Id: <20050811144441.54b6ef4a.akpm@osdl.org> In-Reply-To: References: <20050808160844.04d1f7ac.akpm@osdl.org> <20050810101714.147e1333.akpm@osdl.org> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Magnus Damm wrote: > > On 8/11/05, Andrew Morton wrote: > > Mel Gorman wrote: > > > The majority of pages I am seeing no longer have page->mapping set. Does > > > this mean they are in the process of being cleared up? > > > > They're just anonymous pages, aren't they? But you said "pages that are > > being used for inodes". Confused. > > I thought page->mapping was used by rmap for both inode-backed and > anonymous pages. And the PAGE_MAPPING_ANON bit was used to determine > that page->mapping points to struct anon_vma instead of struct > address_space. > > When is page->mapping NULL? > mm.h:page_mapping() handles all that.