kernel - TMPFS - Add infrastructure to main kernel to help support TMPFS
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 13 Feb 2010 03:11:36 +0000 (19:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 13 Feb 2010 03:11:36 +0000 (19:11 -0800)
commit0a8aee15320dd5b32f4f0651e3dee5e934057b01
treea0c03006966198f1fad8980611b45875876c1a44
parent7a2de9a42eb7af2d2c40f327e088e6c88489241a
kernel - TMPFS - Add infrastructure to main kernel to help support TMPFS

* Add buwrite(), similar to bdwrite() except it fakes the write,
  marks the pages as valid and dirty, and returns them to the VM
  system leaving the buffer cache buffer clean.

  This is used by tmpfs in tmpfs_write() and allows the entire VM page
  cache to be used to cache dirty tmpfs data instead of just the
  buffer cache.

  Also add vm_page_ste_validdirty() to suppor buwrite().

* Implement MNTK_SG_MPSAFE for future use by tmpfs.

* Fix a bug in swap_strategy().  When the entire block being
  requested is sparse (has no swap assignments) the function
  was not properly biodone()'ing the original bio after
  zero-filling the space.
sys/kern/vfs_bio.c
sys/kern/vfs_vopops.c
sys/sys/buf.h
sys/vm/swap_pager.c
sys/vm/vm_page.c
sys/vm/vm_page.h