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:
parent
2f02abc196
commit
f721133eb9
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user