[Midnightbsd-cvs] src [8013] trunk/sys/vm/vm_pageout.c: if the inactive queue scan isnt restarted, then teh var addl_page_shortage_init isnt needed
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Sep 15 05:01:42 EDT 2016
Revision: 8013
http://svnweb.midnightbsd.org/src/?rev=8013
Author: laffer1
Date: 2016-09-15 05:01:42 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
if the inactive queue scan isnt restarted, then teh var addl_page_shortage_init isnt needed
Modified Paths:
--------------
trunk/sys/vm/vm_pageout.c
Modified: trunk/sys/vm/vm_pageout.c
===================================================================
--- trunk/sys/vm/vm_pageout.c 2016-09-15 09:00:56 UTC (rev 8012)
+++ trunk/sys/vm/vm_pageout.c 2016-09-15 09:01:42 UTC (rev 8013)
@@ -738,7 +738,7 @@
vm_page_t m, next;
struct vm_page marker;
int page_shortage, maxscan, pcount;
- int addl_page_shortage, addl_page_shortage_init;
+ int addl_page_shortage;
vm_object_t object;
int actcount;
int vnodes_skipped = 0;
@@ -754,13 +754,13 @@
*/
uma_reclaim();
- addl_page_shortage_init = atomic_readandclear_int(&vm_pageout_deficit);
+ addl_page_shortage = atomic_readandclear_int(&vm_pageout_deficit);
/*
* Calculate the number of pages we want to either free or move
* to the cache.
*/
- page_shortage = vm_paging_target() + addl_page_shortage_init;
+ page_shortage = vm_paging_target() + addl_page_shortage;
vm_pageout_init_marker(&marker, PQ_INACTIVE);
@@ -786,7 +786,6 @@
maxlaunder = 10000;
vm_page_lock_queues();
queues_locked = TRUE;
- addl_page_shortage = addl_page_shortage_init;
maxscan = cnt.v_inactive_count;
for (m = TAILQ_FIRST(&vm_page_queues[PQ_INACTIVE].pl);
More information about the Midnightbsd-cvs
mailing list