summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-11-03 17:15:15 +0000
committeralc <alc@FreeBSD.org>2009-11-03 17:15:15 +0000
commit4d317ded24c674d9ce64ff411ba292b955353b75 (patch)
tree457c4d498d4ebb8bb2514550dfc58e133c89e7ab /sys/vm/vm_fault.c
parent1c940ef4f4e225185b488e5cf1498863dfbbcebb (diff)
downloadFreeBSD-src-4d317ded24c674d9ce64ff411ba292b955353b75.zip
FreeBSD-src-4d317ded24c674d9ce64ff411ba292b955353b75.tar.gz
Eliminate a bit of hackery from vm_fault(). The operations that this
hackery sought to prevent are now properly supported by vm_map_protect(). (See r198505.) Reviewed by: kib
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index de87183..55b4173 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -264,17 +264,6 @@ RetryFault:;
&fs.entry, &fs.first_object, &fs.first_pindex, &prot, &wired);
if (result != KERN_SUCCESS)
return (result);
-
- /*
- * If we don't COW now, on a user wire, the user will never
- * be able to write to the mapping. If we don't make this
- * restriction, the bookkeeping would be nearly impossible.
- *
- * XXX The following assignment modifies the map without
- * holding a write lock on it.
- */
- if ((fs.entry->protection & VM_PROT_WRITE) == 0)
- fs.entry->max_protection &= ~VM_PROT_WRITE;
}
map_generation = fs.map->timestamp;
OpenPOWER on IntegriCloud