diff options
author | John Dyson <dyson@FreeBSD.org> | 1996-07-08 03:22:55 +0000 |
---|---|---|
committer | John Dyson <dyson@FreeBSD.org> | 1996-07-08 03:22:55 +0000 |
commit | 502ba6e4a88ba3af76f4f20255eeb64f3e6b4989 (patch) | |
tree | 1cf83ed983980bfba60ba794c2e0f6429e472388 /sys/vm | |
parent | c8c4b40ccab9b36afd1d4d30d87ba98401d76fc6 (diff) | |
download | src-502ba6e4a88ba3af76f4f20255eeb64f3e6b4989.tar.gz src-502ba6e4a88ba3af76f4f20255eeb64f3e6b4989.zip |
Back-off on the previous commit, specifically remove the look-ahead
optimization on the active queue scan. I will do this correctly later.
Notes
Notes:
svn path=/head/; revision=17004
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 6a13ec88570d..98ad6ef579a5 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -65,7 +65,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pageout.c,v 1.80 1996/06/29 09:15:39 davidg Exp $ + * $Id: vm_pageout.c,v 1.81 1996/07/08 02:25:53 dyson Exp $ */ /* @@ -564,7 +564,7 @@ vm_pageout_map_deactivate_pages(map, desired) static int vm_pageout_scan() { - vm_page_t m, next, nextnext; + vm_page_t m, next; int page_shortage, addl_page_shortage, maxscan, maxlaunder, pcount; int pages_freed; struct proc *p, *bigproc; @@ -755,22 +755,14 @@ rescan0: pcount = cnt.v_active_count; m = TAILQ_FIRST(&vm_page_queue_active); - nextnext = NULL; while ((m != NULL) && (pcount-- > 0) && (page_shortage > 0)) { int refcount; if (m->queue != PQ_ACTIVE) { - m = nextnext; - if ((m == NULL) || (m->queue != PQ_ACTIVE)) - break; + break; } next = TAILQ_NEXT(m, pageq); - if (next) - nextnext = TAILQ_NEXT(next, pageq); - else - nextnext = NULL; - /* * Don't deactivate pages that are busy. */ |