kernel - Refactor swapoff scan code
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 3 Mar 2013 08:15:42 +0000 (00:15 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 3 Mar 2013 08:15:42 +0000 (00:15 -0800)
commit427e1a99f84ec99acaaeecf046ac9fb94b9d4443
tree869206762d79e39544dfde6f80ab6e040cc8c5d9
parent3b47bfc4f83363f5a473ab71e6219ad84ebc6b77
kernel - Refactor swapoff scan code

* Refactor the scan code to be far more optimal.  The old scan was
  restarting the entire VM object scan on each swap block removed
  from the swap device being turned off.

* Scan twice before giving up to try to catch any elements which
  are in-transition.
sys/vm/swap_pager.c
sys/vm/vm_swap.c