kernel - SWAP CACHE part 7/many - Add vm_swapcache.c core (write side)
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Feb 2010 17:05:57 +0000 (09:05 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Feb 2010 17:05:57 +0000 (09:05 -0800)
commit096e95c0a5baff85a63e1c94469fb3169dc7b081
treea3f0025c45f26a273a899990b428cac350577de0
parent8caf45b009197bf369992d59ff2020f2d4623135
kernel - SWAP CACHE part 7/many - Add vm_swapcache.c core (write side)

* Add vm_swapcache.c which will be responsible for assigning swap to clean
  vnode-backed VM pages and writing the data out.

  Implement a very simple inactive queue scanner and swap-writer for
  testing.

* Track swap space use, split up into the piece used for anonymous
  data and the piece used for clean vnode-backed data.

* Add PG_SWAPPED tracking for newly allocated VM pages via
  swap_pager_page_inserted().

* Conditionalize the swap code's dirtying/undirtying of VM pages.  We
  don't want to mess with the dirty state when working the swap
  cache since it isn't the definitive backing store for the VM page.
sys/conf/files
sys/vm/swap_pager.c
sys/vm/swap_pager.h
sys/vm/vm_page.c
sys/vm/vm_swapcache.c [new file with mode: 0644]