git: kernel - TMPFS - Features, don't sync on umount, enforce snocache on root
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Feb 20 15:09:13 PST 2010
commit d4623db37d5f02efd8bc2253c289e7d6a1f77e7d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Feb 20 15:03:41 2010 -0800
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).
Summary of changes:
sys/vfs/tmpfs/tmpfs.h | 2 --
sys/vfs/tmpfs/tmpfs_subr.c | 5 +++++
sys/vfs/tmpfs/tmpfs_vfsops.c | 31 +++++++++++++++++++++++++------
sys/vfs/tmpfs/tmpfs_vnops.c | 4 +---
4 files changed, 31 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d4623db37d5f02efd8bc2253c289e7d6a1f77e7d
--
DragonFly BSD source repository
More information about the Commits
mailing list