Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm When starting the second pass, don't continue the fo...
details: https://anonhg.NetBSD.org/src/rev/07f0fdf14033
branches: trunk
changeset: 761368:07f0fdf14033
user: matt <matt%NetBSD.org@localhost>
date: Tue Jan 25 17:22:43 2011 +0000
description:
When starting the second pass, don't continue the for loop but instead
just test try exceeding limit.
diffstat:
sys/uvm/uvm_pglist.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r f09cae805531 -r 07f0fdf14033 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c Tue Jan 25 14:05:42 2011 +0000
+++ b/sys/uvm/uvm_pglist.c Tue Jan 25 17:22:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pglist.c,v 1.58 2011/01/24 22:54:01 matt Exp $ */
+/* $NetBSD: uvm_pglist.c,v 1.59 2011/01/25 17:22:43 matt Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.58 2011/01/24 22:54:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.59 2011/01/25 17:22:43 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -391,7 +391,7 @@
return 0;
for (;; try++, pg++) {
- if (try >= limit) {
+ while (try >= limit) {
if (ps->start_hint == 0 || second_pass) {
try = limit - 1;
break;
@@ -400,7 +400,6 @@
try = max(low, ps->avail_start);
limit = min(limit, ps->avail_start + ps->start_hint);
pg = &ps->pgs[try - ps->start];
- continue;
}
#if defined(DEBUG)
{
Home |
Main Index |
Thread Index |
Old Index