kernel - TMPFS - Stabilization pass, fix VM object leak, msync
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Feb 2010 03:07:43 +0000 (19:07 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Feb 2010 03:07:43 +0000 (19:07 -0800)
commitf96f2f39b0082a3241919be617757c2235a6add0
tree36e836d7138fb863682312a897261a04d0680b8b
parent2bc7505b48b58bc9b2f01f5e8f6391cf7168f965
kernel - TMPFS - Stabilization pass, fix VM object leak, msync

* The swap vm_object backing regular files was not being deallocated
  properly and leaked kernel memory.

* Truncate deleted files a little earlier in the INACTIVE path.

* Set MNTK_NOMSYNC.  This prevents msync(), sync(), and the
  periodic filesystem syncer from flushing pages to swap.

  VM pages related to tmpfs are only flushed based on memory
  pressure.
sys/vfs/tmpfs/tmpfs_subr.c
sys/vfs/tmpfs/tmpfs_vfsops.c
sys/vfs/tmpfs/tmpfs_vnops.c