git: kernel - Do not clean VM pages on fsync() for tmpfs

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Feb 28 17:20:14 PST 2013


commit 6f2f854f2066ba30dc73c6d75d3c68578423fbc4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Feb 28 17:18:40 2013 -0800

    kernel - Do not clean VM pages on fsync() for tmpfs
    
    * tmpfs fsync()s are basically NOPs, but the kernel had some
      code to clean the VM object (flush to backing store) on
      fsync, which would actually cause pages to go out to swap
      unnecessarily.
    
    * Detect the appropriate flag and turn this off.  Only effects
      tmpfs.
    
    * Improves poudriere and other tmpfs-related use cases.

Summary of changes:
 sys/kern/vfs_syscalls.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6f2f854f2066ba30dc73c6d75d3c68578423fbc4


-- 
DragonFly BSD source repository



More information about the Commits mailing list