git: kernel - Optimize sync and msync for tmpfs and nfs

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 11 00:06:05 PDT 2013


commit fd2da346d8d75955f03246d811568a9f680db45e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 11 00:00:39 2013 -0700

    kernel - Optimize sync and msync for tmpfs and nfs
    
    * Flesh-out the vfs_sync API and implement vhold/vdrop callbacks
      (used by NFS).
    
    * Use MNTK_THR_SYNC in tmpfs and finish implementing it in nfs.  This
      will optimize sync and msync for these filesystems.
    
    * In both cases inode attributes are either synchronous or don't involve
      any VFS work to flush, so we don't have to use VISDIRTY.

Summary of changes:
 sys/kern/vfs_sync.c          | 45 +++++++++++++++++++++++++++++++++++++++++---
 sys/sys/vnode.h              |  2 ++
 sys/vfs/nfs/nfs_subs.c       |  5 ++---
 sys/vfs/nfs/nfs_vfsops.c     | 25 ++++++++----------------
 sys/vfs/nfs/nfs_vnops.c      |  6 ++++++
 sys/vfs/tmpfs/tmpfs_vfsops.c |  1 +
 sys/vm/vm_object.c           | 13 +++++++++----
 7 files changed, 70 insertions(+), 27 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fd2da346d8d75955f03246d811568a9f680db45e


-- 
DragonFly BSD source repository


More information about the Commits mailing list