Module Name: src Committed By: matt Date: Tue Jan 25 17:22:44 UTC 2011
Modified Files: src/sys/uvm: uvm_pglist.c Log Message: When starting the second pass, don't continue the for loop but instead just test try exceeding limit. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/uvm/uvm_pglist.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_pglist.c diff -u src/sys/uvm/uvm_pglist.c:1.58 src/sys/uvm/uvm_pglist.c:1.59 --- src/sys/uvm/uvm_pglist.c:1.58 Mon Jan 24 22:54:01 2011 +++ src/sys/uvm/uvm_pglist.c Tue Jan 25 17:22:43 2011 @@ -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) {