svn commit: r215709 - stable/8/sys/vm

Max Laier mlaier at FreeBSD.org
Mon Nov 22 20:50:41 UTC 2010


Author: mlaier
Date: Mon Nov 22 20:50:40 2010
New Revision: 215709
URL: http://svn.freebsd.org/changeset/base/215709

Log:
  MFH r215508:
    Off by one page in vm_reserv_reclaim_contig(): reclaim reservations with
    only a single free page as well.
  
    Reviewed by:	alc

Modified:
  stable/8/sys/vm/vm_reserv.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/vm/vm_reserv.c
==============================================================================
--- stable/8/sys/vm/vm_reserv.c	Mon Nov 22 20:46:38 2010	(r215708)
+++ stable/8/sys/vm/vm_reserv.c	Mon Nov 22 20:50:40 2010	(r215709)
@@ -659,7 +659,8 @@ vm_reserv_reclaim_contig(vm_paddr_t size
 					    ((pa ^ (pa + size - 1)) &
 					    ~(boundary - 1)) != 0)
 						pa_length = 0;
-				} else if (pa_length >= size) {
+				}
+				if (pa_length >= size) {
 					vm_reserv_reclaim(rv);
 					return (TRUE);
 				}


More information about the svn-src-stable-8 mailing list