Author: mlaier
Date: Mon Nov 22 21:22:08 2010
New Revision: 215715
URL: http://svn.freebsd.org/changeset/base/215715

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/7/sys/vm/vm_reserv.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_reserv.c
==============================================================================
--- stable/7/sys/vm/vm_reserv.c Mon Nov 22 21:20:11 2010        (r215714)
+++ stable/7/sys/vm/vm_reserv.c Mon Nov 22 21:22:08 2010        (r215715)
@@ -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);
                                }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to