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/vnode_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vnode_pager.c') diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 1583d4a..8782684 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -348,7 +348,7 @@ vnode_pager_setsize(vp, nsize) * XXX should vm_pager_unmap_page() have * dealt with this? */ - vm_page_protect(m, VM_PROT_NONE); + pmap_page_protect(m, VM_PROT_NONE); /* * Clear out partial-page dirty bits. This -- cgit v1.1