diff options
author | alc <alc@FreeBSD.org> | 2006-08-01 19:06:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-08-01 19:06:06 +0000 |
commit | a152234cf9a52766984ecb9a96cc1e5740ae9d78 (patch) | |
tree | 7cf5203513490cb91de50813dfb5015b4f873256 /sys/vm/vm_pageout.c | |
parent | a2e0f77d8f100b139a19a4fc8ecece7356b6afdc (diff) | |
download | FreeBSD-src-a152234cf9a52766984ecb9a96cc1e5740ae9d78.zip FreeBSD-src-a152234cf9a52766984ecb9a96cc1e5740ae9d78.tar.gz |
Complete the transition from pmap_page_protect() to pmap_remove_write().
Originally, I had adopted sparc64's name, pmap_clear_write(), for the
function that is now pmap_remove_write(). However, this function is more
like pmap_remove_all() than like pmap_clear_modify() or
pmap_clear_reference(), hence, the name change.
The higher-level rationale behind this change is described in
src/sys/amd64/amd64/pmap.c revision 1.567. The short version is that I'm
trying to clean up and fix our support for execute access.
Reviewed by: marcel@ (ia64)
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r-- | sys/vm/vm_pageout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index e7611d2..115777d 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -431,7 +431,7 @@ vm_pageout_flush(vm_page_t *mc, int count, int flags) ("vm_pageout_flush: partially invalid page %p index %d/%d", mc[i], i, count)); vm_page_io_start(mc[i]); - pmap_page_protect(mc[i], VM_PROT_READ); + pmap_remove_write(mc[i]); } vm_page_unlock_queues(); vm_object_pip_add(object, count); |