svn commit: r304924 - user/alc/PQ_LAUNDRY/sys/vm

Alan Cox alc at FreeBSD.org
Sat Aug 27 21:52:59 UTC 2016


Author: alc
Date: Sat Aug 27 21:52:57 2016
New Revision: 304924
URL: https://svnweb.freebsd.org/changeset/base/304924

Log:
  Eliminate redundant assignments to "last_launder" and "starting_target".
  
  Correct an inverted comparison.
  
  Reviewed by:	markj
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c

Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
==============================================================================
--- user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c	Sat Aug 27 21:32:56 2016	(r304923)
+++ user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c	Sat Aug 27 21:52:57 2016	(r304924)
@@ -1186,8 +1186,7 @@ vm_pageout_laundry_worker(void *arg)
 		ndirty = vm_cnt.v_laundry_count;
 		if (target == 0 && wakeups != last_launder &&
 		    ndirty * isqrt(wakeups - last_launder) >= nclean) {
-			last_launder = wakeups;
-			target = starting_target = vm_background_launder_target;
+			target = vm_background_launder_target;
 		}
 
 		/*
@@ -1208,7 +1207,7 @@ vm_pageout_laundry_worker(void *arg)
 			}
 			launder = vm_background_launder_rate * PAGE_SIZE / 1024;
 			launder /= VM_LAUNDER_INTERVAL;
-			if (launder < target)
+			if (launder > target)
 				launder = target;
 		}
 


More information about the svn-src-user mailing list