kernel - Fix swapcache cleaning issue
commiteea5ad68c68fec8924773b2aba3d9025ae114c74
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 May 2018 06:41:14 +0000 (18 23:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 May 2018 06:45:02 +0000 (18 23:45 -0700)
tree37fda3b43dd644d36d22fa1e9cb828d2e64087f1
parent785fe344cdc19eb9b835c1def566d8bc93daf5df
kernel - Fix swapcache cleaning issue

* Fix a bug when a single object has swapcached pages.  In this
  situation, when swapcache exhausts its scan of the object it
  will fail to cycle back to the beginning.  This prevents it
  from cycling any further pages for the object.

* Does not corrupt the system or anything like that, but causes
  swapcache to behave in a way that can sometimes make it less
  useful.

Reported-by: tuxillo (java on monster)
sys/vm/vm_swapcache.c