]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Style changes in vm_pageout_scan():
authorAlan Cox <alc@FreeBSD.org>
Sat, 18 Jan 2014 20:02:59 +0000 (20:02 +0000)
committerAlan Cox <alc@FreeBSD.org>
Sat, 18 Jan 2014 20:02:59 +0000 (20:02 +0000)
commit86fa24710e94d69213db3f7f722db3f1f2e61790
treeecf196b1e53ab33fddc977de4b605bca5fd742f0
parentb6a16fc853f06c7243bf49c5e075ab930cf646eb
Style changes in vm_pageout_scan():

1. Be consistent in the style of "act_delta" manipulations between the
   inactive and active queue scans.

2. Explicitly compare to zero.

3. The deactivation of a page is based is based on its recent history
   and not just the current call to vm_pageout_scan().  The variable
   "act_delta" represents the current state of the page, and not its
   history.  Avoid possible confusion by not (ab)using "act_delta" for
   the making the deactivation decision.

Submitted by: kib [1]
Reviewed by: kib [2,3]
sys/vm/vm_pageout.c