Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030400AbWLTWa5 (ORCPT ); Wed, 20 Dec 2006 17:30:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030402AbWLTWa5 (ORCPT ); Wed, 20 Dec 2006 17:30:57 -0500 Received: from smtp.osdl.org ([65.172.181.25]:45125 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030400AbWLTWa4 (ORCPT ); Wed, 20 Dec 2006 17:30:56 -0500 Date: Wed, 20 Dec 2006 14:25:42 -0800 (PST) From: Linus Torvalds To: Dave Kleikamp cc: Martin Michlmayr , Peter Zijlstra , Hugh Dickins , Nick Piggin , Arjan van de Ven , Andrei Popa , Andrew Morton , Linux Kernel Mailing List , Florian Weimer , Marc Haber , Martin Schwidefsky , Heiko Carstens , Arnd Bergmann , gordonfarquharson@gmail.com Subject: Re: [PATCH] mm: fix page_mkclean_one (was: 2.6.19 file content corruption on ext3) In-Reply-To: <1166651735.10211.9.camel@kleikamp.austin.ibm.com> Message-ID: References: <1166571749.10372.178.camel@twins> <1166605296.10372.191.camel@twins> <1166607554.3365.1354.camel@laptopd505.fenrus.org> <1166614001.10372.205.camel@twins> <1166622979.10372.224.camel@twins> <20061220170323.GA12989@deprecation.cyrius.com> <20061220175309.GT30106@deprecation.cyrius.com> <1166651735.10211.9.camel@kleikamp.austin.ibm.com> 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 Content-Length: 1032 Lines: 30 On Wed, 20 Dec 2006, Dave Kleikamp wrote: > > This patch removes some questionable code that attempted to make a > no-longer-used page easier to reclaim. If so, "cancel_dirty_page()" may actually be the right thing to use, but only if you can guarantee that the page isn't mapped anywhere (and from the name of the function I guess it's not something that you'll ever map?) So the JFS code _looks_ like you could just replace the clear_page_dirty(page); with cancel_dirty_page(page, PAGE_CACHE_SIZE); (where that second parameter is just used for statistics - it updates the "cancelled IO" byte-counts if CONFIG_TASK_IO_ACCOUNTING is set - so the number doesn't really matter, you could make it zero if you never want the thing to show up in the IO accounting). 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/