From fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 10 Nov 2002 07:12:04 +0000 Subject: When prot is VM_PROT_NONE, call pmap_page_protect() directly rather than indirectly through vm_page_protect(). The one remaining page flag that is updated by vm_page_protect() is already being updated by our various pmap implementations. Note: A later commit will similarly change the VM_PROT_READ case and eliminate vm_page_protect(). --- sys/vm/vm_fault.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/vm/vm_fault.c') diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 058107e..9bfe847 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -474,7 +474,7 @@ readrest: if (mt->dirty == 0) vm_page_test_dirty(mt); if (mt->dirty) { - vm_page_protect(mt, VM_PROT_NONE); + pmap_page_protect(mt, VM_PROT_NONE); vm_page_deactivate(mt); } else { vm_page_cache(mt); @@ -700,7 +700,7 @@ readrest: * get rid of the unnecessary page */ vm_page_lock_queues(); - vm_page_protect(fs.first_m, VM_PROT_NONE); + pmap_page_protect(fs.first_m, VM_PROT_NONE); vm_page_free(fs.first_m); vm_page_unlock_queues(); fs.first_m = NULL; -- cgit v1.1