From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 25 May 2000 17:48:17 -0600 From: Neil Schemenauer Subject: Re: [patch] page aging and deferred swapping for 2.4.0-test1 Message-ID: <20000525174817.A18487@acs.ucalgary.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from riel@conectiva.com.br on Thu, May 25, 2000 at 08:03:42PM -0300 Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: linux-mm@kvack.org List-ID: On Thu, May 25, 2000 at 08:03:42PM -0300, Rik van Riel wrote: > + if (PageTestandClearReferenced(page)) { > + page->age += 3; > + if (page->age > 10) > + page->age = 0; Why this test? Something like: if (page->age < 10) { page->age += 3; } makes more sense to me. Neil -- 'Slashdot, with its uncontrolled content and participants' poor impulse control, remains Internet culture's answer to "Lord of the Flies."' - Salon -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/