Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Nov 2001 19:13:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Nov 2001 19:13:48 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:64523 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Mon, 19 Nov 2001 19:13:36 -0500 Date: Mon, 19 Nov 2001 16:08:36 -0800 (PST) From: Linus Torvalds To: Rik van Riel cc: Rik van Riel , Marcelo Tosatti , Simon Kirby , Andrea Arcangeli , lkml Subject: Re: VM-related Oops: 2.4.15pre1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Nov 2001, Rik van Riel wrote: > > The thing is, the "exclusively owned" situation cannot > be checked in any way, except maybe through the fact > that page->mapping==NULL ... Well, you also have to check that the page isn't on the LRU list, so it would have to be something like !page->mapping && !PageLRU(page) which I agree is ugly. It's much better to just move the page->flag setting into the callers (and most of the callers _can_ trivially check that they are exclusive owners, because most of them will just have allocated the page ;) Linus - 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/