Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Dec 2000 19:37:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Dec 2000 19:37:42 -0500 Received: from perninha.conectiva.com.br ([200.250.58.156]:37649 "EHLO perninha.conectiva.com.br") by vger.kernel.org with ESMTP id ; Thu, 28 Dec 2000 19:37:35 -0500 Date: Thu, 28 Dec 2000 20:14:55 -0200 (BRST) From: Marcelo Tosatti To: Linus Torvalds cc: Kernel Mailing List Subject: Re: test13-pre5 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 Thu, 28 Dec 2000, Linus Torvalds wrote: > - make "SetPageDirty()" do something like > > if (!test_and_set(PG_dirty, &page->flags)) { > spin_lock(&page_cache_lock); > list_del(page->list); > list_add(page->list, page->mapping->dirty_pages); > spin_unlock(&page_cache_lock); > } > > This will require making sure that every place that does a > SetPageDirty() will be ok with this (ie double-check that they all have > a mapping: right now the free_pte() code in mm/memory.c doesn't care, > because it knew that it coul dmark even anonymous pages dirty and > they'd just get ignored. > - make a filemap_fdatasync() that walks the dirty pages and does a > writepage() on them all and moves them to the clean list. We also want to move the page to the per-address-space clean list in ClearPageDirty I suppose. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/