svn commit: r203175 - head/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Fri Jan 29 19:25:46 UTC 2010
Author: kib
Date: Fri Jan 29 19:25:45 2010
New Revision: 203175
URL: http://svn.freebsd.org/changeset/base/203175
Log:
The MAP_ENTRY_NEEDS_COPY flag belongs to protoeflags, cow variable
uses different namespace.
Reported by: Jonathan Anderson <jonathan.anderson cl cam ac uk>
MFC after: 3 days
Modified:
head/sys/vm/vm_map.c
Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c Fri Jan 29 18:33:59 2010 (r203174)
+++ head/sys/vm/vm_map.c Fri Jan 29 19:25:45 2010 (r203175)
@@ -1136,7 +1136,7 @@ vm_map_insert(vm_map_t map, vm_object_t
((protoeflags & MAP_ENTRY_NEEDS_COPY) || object == NULL))) {
if (!(cow & MAP_ACC_CHARGED) && !swap_reserve(end - start))
return (KERN_RESOURCE_SHORTAGE);
- KASSERT(object == NULL || (cow & MAP_ENTRY_NEEDS_COPY) ||
+ KASSERT(object == NULL || (protoeflags & MAP_ENTRY_NEEDS_COPY) ||
object->uip == NULL,
("OVERCOMMIT: vm_map_insert o %p", object));
uip = curthread->td_ucred->cr_ruidinfo;
More information about the svn-src-all
mailing list