svn commit: r206411 - stable/7/sys/vm
Alan Cox
alc at FreeBSD.org
Fri Apr 9 06:47:37 UTC 2010
Author: alc
Date: Fri Apr 9 06:47:36 2010
New Revision: 206411
URL: http://svn.freebsd.org/changeset/base/206411
Log:
MFC r206174
vm_reserv_alloc_page() should never be called on an OBJT_SG object, just
as it is never called on an OBJT_DEVICE object. (This change should have
been included in r195840.)
Modified:
stable/7/sys/vm/vm_page.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/vm/vm_page.c
==============================================================================
--- stable/7/sys/vm/vm_page.c Fri Apr 9 06:40:30 2010 (r206410)
+++ stable/7/sys/vm/vm_page.c Fri Apr 9 06:47:36 2010 (r206411)
@@ -1065,6 +1065,7 @@ vm_page_alloc(vm_object_t object, vm_pin
return (NULL);
#if VM_NRESERVLEVEL > 0
} else if (object == NULL || object->type == OBJT_DEVICE ||
+ object->type == OBJT_SG ||
(object->flags & OBJ_COLORED) == 0 ||
(m = vm_reserv_alloc_page(object, pindex)) == NULL) {
#else
More information about the svn-src-all
mailing list