diff options
author | dillon <dillon@FreeBSD.org> | 1999-02-24 21:26:26 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-02-24 21:26:26 +0000 |
commit | 3ad14cacdcabd4212b9384d2ea5ef5eb8a144543 (patch) | |
tree | 70e54e7b32beaa82ef4eb4c0d3de4109950694cf /sys/vm/vm_map.c | |
parent | 7648580bdbf37610588b295d581048815e510c04 (diff) | |
download | FreeBSD-src-3ad14cacdcabd4212b9384d2ea5ef5eb8a144543.zip FreeBSD-src-3ad14cacdcabd4212b9384d2ea5ef5eb8a144543.tar.gz |
Remove unnecessary page protects on map_split and collapse operations.
Fix bug where an object's OBJ_WRITEABLE/OBJ_MIGHTBEDIRTY flags do
not get set under certain circumstances ( page rename case ).
Reviewed by: Alan Cox <alc@cs.rice.edu>, John Dyson
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index cbb59cf..05c8c5c 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.150 1999/02/19 03:11:37 dillon Exp $ + * $Id: vm_map.c,v 1.151 1999/02/19 14:25:36 luoqi Exp $ */ /* @@ -2162,12 +2162,14 @@ vm_map_split(entry) /* * We must wait for pending I/O to complete before we can * rename the page. + * + * We do not have to VM_PROT_NONE the page as mappings should + * not be changed by this operation. */ if (vm_page_sleep_busy(m, TRUE, "spltwt")) goto retry; vm_page_busy(m); - vm_page_protect(m, VM_PROT_NONE); vm_page_rename(m, new_object, idx); /* page automatically made dirty by rename and cache handled */ vm_page_busy(m); |