Fix ticks wrap issue of lowmem test in vm_pageout_scan

Reviewed by:	jhb (D818)
MFC after:	3 days
Sponsored by:	Multiplay
This commit is contained in:
Steven Hartland 2014-09-24 14:35:08 +00:00
parent 2f02abc196
commit f721133eb9

View File

@ -916,7 +916,7 @@ vm_pageout_scan(struct vm_domain *vmd, int pass)
* some. We rate limit to avoid thrashing.
*/
if (vmd == &vm_dom[0] && pass > 0 &&
lowmem_ticks + (lowmem_period * hz) < ticks) {
(ticks - lowmem_ticks) / hz >= lowmem_period) {
/*
* Decrease registered cache sizes.
*/