Messages in this thread | | | Date | Thu, 28 Dec 2000 20:14:55 -0200 (BRST) | From | Marcelo Tosatti <> | Subject | Re: test13-pre5 |
| |
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/
| |