kernel - Minor pmap optimizations, minor swap_pager*() optimizations
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Mar 2020 17:23:09 +0000 (09:23 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Mar 2020 17:25:44 +0000 (09:25 -0800)
commit427fbc33cbe32c67bca95139922cca56028464a0
tree1f02f606d818e165738e74fdec7420bab05af095
parent3a8f824874846b019083914ed34f2671461f2498
kernel - Minor pmap optimizations, minor swap_pager*() optimizations

* Avoid the atomic_fcmpset_int() in pmap_enter() if the page already
  has the appropriate PG_* bits set.  Because the page is soft-busied,
  this check should not be able to race any clearing of the bits (which
  can only be done when the page is hard-busied).

* swap_pager_freespace*() no longer bothers to acquire the object
  token if the object's swblock_count is 0.

* Misc __read_* optimizations

* Misc __predict* optimizations
sys/platform/pc64/x86_64/pmap.c
sys/vm/swap_pager.c