Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 26 Jul 2001 08:13:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 26 Jul 2001 08:13:37 -0400 Received: from humbolt.nl.linux.org ([131.211.28.48]:45577 "EHLO humbolt.nl.linux.org") by vger.kernel.org with ESMTP id ; Thu, 26 Jul 2001 08:13:22 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Marcelo Tosatti Subject: Re: [RFC] Optimization for use-once pages Date: Thu, 26 Jul 2001 14:17:58 +0200 X-Mailer: KMail [version 1.2] Cc: "Eric W. Biederman" , Rik van Riel , Andrew Morton , linux-kernel@vger.kernel.org, Ben LaHaise , Mike Galbraith In-Reply-To: In-Reply-To: MIME-Version: 1.0 Message-Id: <0107261417580M.00907@starship> Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Original-Recipient: rfc822;linux-kernel-outgoing On Thursday 26 July 2001 12:38, Marcelo Tosatti wrote: > On Thu, 26 Jul 2001, Daniel Phillips wrote: > > There does seem to be a dangling thread here though - when a > > process page is unmapped and added to swap cache in try_to_swap_out > > then later faulted back in, I don't see where we "rescue" the page > > from the inactive queue. Maybe I'm just not looking hard enough. > > do_swap_page()->lookup_swap_cache()->__find_page_nolock()->SetPageRef >erenced(). > > The referenced bit will make page_launder/reclaim_page move the page > to the active list. Yes. And there I set ->age to a known state (START_AGE), so everything seems to be in order. -- Daniel - 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/