kernel - Fix bugs in recent RSS/swap commits
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Jan 2017 21:20:49 +0000 (13:20 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Jan 2017 21:22:44 +0000 (13:22 -0800)
commitda2da42072639bd7158bf0dcea4ba34bdcfebd67
treeeb98cb7ac6d62127e815c7533054acb8768e92f2
parentc0f2d562c0c24deab2c11f423581bbd2fa039e11
kernel - Fix bugs in recent RSS/swap commits

* Refactor the vm_page_try_to_cache() call to take a page already busied,
  and fix a case where it was previously being called improperly that left
  a VM page permanently busy.
sys/kern/vfs_bio.c
sys/platform/pc64/x86_64/pmap.c
sys/vm/swap_pager.c
sys/vm/vm_page.c