DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - TMPFS - Features, don't sync on umount, enforce snocache on root


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 20 Feb 2010 15:08:46 -0800 (PST)

commit d4623db37d5f02efd8bc2253c289e7d6a1f77e7d
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]