From 22ca5e3c359d287cf8c98ba04834ba6891255858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 29 Nov 2004 15:52:49 +0000 Subject: [PATCH] Added a comment to vm_page_write_modified() that writing pages can only be done consistently if they are unmapped from memory - which is not yet done. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10285 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/vm/vm_page.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernel/core/vm/vm_page.c b/src/kernel/core/vm/vm_page.c index 4ddccc0814..b6025302de 100755 --- a/src/kernel/core/vm/vm_page.c +++ b/src/kernel/core/vm/vm_page.c @@ -169,6 +169,10 @@ vm_page_write_modified(vm_cache *cache) remove_page_from_queue(&page_modified_queue, page); page->state = PAGE_STATE_BUSY; gotPage = true; + + // ToDo: just setting PAGE_STAGE_BUSY is not enough, we would also + // need to remove all mappings of this page - else, you could still + // write to this page. } release_spinlock(&page_lock);