kernel - TMPFS - Features, don't sync on umount, enforce snocache on root
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Feb 2010 23:03:41 +0000 (15:03 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 20 Feb 2010 23:03:41 +0000 (15:03 -0800)
commitd4623db37d5f02efd8bc2253c289e7d6a1f77e7d
tree8054ccafc5feda960ba5a38ced9983e2fe742bd3
parentbd9525adc315c81e15d00958f56e778c0da16178
kernel - TMPFS - Features, don't sync on umount, enforce snocache on root

* The umount code was syncing the contents of tmpfs to swap.  Fix it so it
  doesn't.

* Set the snocache flag on the tmpfs root node and silently enforce it on
  any chflags operation.  This prevents swapcache from trying to pageout
  file data from tmpfs (which is already backed by swap).
sys/vfs/tmpfs/tmpfs.h
sys/vfs/tmpfs/tmpfs_subr.c
sys/vfs/tmpfs/tmpfs_vfsops.c
sys/vfs/tmpfs/tmpfs_vnops.c