Date: Mon, 22 Nov 2010 21:22:08 +0000 (UTC) From: Max Laier <mlaier@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r215715 - stable/7/sys/vm Message-ID: <201011222122.oAMLM8HS006392@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011222122.oAMLM8HS006392>