Fix the act_scan_laundry_weight mechanism.
authormarkj <markj@FreeBSD.org>
Sat, 9 Dec 2017 15:47:26 +0000 (15:47 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 9 Dec 2017 15:47:26 +0000 (15:47 +0000)
commit34795308144bc1914208e854eb592e9ab17d84ea
tree064b3d581324d97ee79869e32f08c8a05ff3e764
parentb0e68228fd666522c26fd5488242285904c0beaf
Fix the act_scan_laundry_weight mechanism.

r292392 modified the active queue scan to weigh clean pages differently
from dirty pages when attempting to meet the inactive queue target. When
r306706 was merged into the PQ_LAUNDRY branch, this mechanism was
broken. Fix it by scalaing the correct page shortage variable.

Reviewed by: alc, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D13423
sys/vm/vm_pageout.c