From b492de88e3b17f6458df5f8a2342633cd3f19fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 8 Oct 2004 23:27:04 +0000 Subject: [PATCH] I've already switched the page pointer to vm_cache, so this comment was not necessary anymore. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9268 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/vm/vm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kernel/core/vm/vm.c b/src/kernel/core/vm/vm.c index e70863d23d..fb28b520c7 100755 --- a/src/kernel/core/vm/vm.c +++ b/src/kernel/core/vm/vm.c @@ -1319,13 +1319,10 @@ vm_copy_on_write_area(vm_region *area) map->ops->lock(map); map->ops->unmap(map, area->base, area->base + area->size - 1); - // ToDo: it seems to make more sense to attach the pages to the vm_cache - // instead of the vm_cache_ref object - this way, we would not need to - // move the pages around (just remap them) - for (page = lowerCache->page_list; page; page = page->cache_next) { map->ops->map(map, area->base + page->offset, page->ppn * B_PAGE_SIZE, protection); } + map->ops->unlock(map); mutex_unlock(&lowerCacheRef->lock);