Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 26 Nov 2001 14:21:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 26 Nov 2001 14:19:49 -0500 Received: from pizda.ninka.net ([216.101.162.242]:4481 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id ; Mon, 26 Nov 2001 14:19:07 -0500 Date: Mon, 26 Nov 2001 11:18:54 -0800 (PST) Message-Id: <20011126.111854.102567147.davem@redhat.com> To: mingo@elte.hu Cc: velco@fadata.bg, linux-kernel@vger.kernel.org, torvalds@transmeta.com Subject: Re: [PATCH] Scalable page cache From: "David S. Miller" In-Reply-To: In-Reply-To: <87vgfxqwd3.fsf@fadata.bg> X-Mailer: Mew version 2.0 on Emacs 21.0 / Mule 5.0 (SAKAKI) 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 From: Ingo Molnar Date: Mon, 26 Nov 2001 22:09:02 +0100 (CET) something like this: - #define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags) + #define SetPageReferenced(page) \ + if (!test_bit(PG_referenced), &(page)->flags) \ + set_bit(PG_referenced, &(page)->flags) On some platforms all the {test_,}{clear,change,set}_bit() ops give you this cache behavior. How hard would it be to make ix86 act similarly? - 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/