summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-11-10 07:12:04 +0000
committeralc <alc@FreeBSD.org>2002-11-10 07:12:04 +0000
commitfc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1 (patch)
treec2353317d021437c05c64b489549bbc567f14a5c /sys/vm/vm_fault.c
parent55c878faa1969b792313405f42e5c61771d3f9d3 (diff)
downloadFreeBSD-src-fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1.zip
FreeBSD-src-fc8a5bc419be7f957bbf8bf9e3b3a1a081ec1af1.tar.gz
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().
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud