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

git: kernel - Do a better job with the filesystem background sync


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jan 2011 15:38:41 -0800 (PST)

commit 28271622aa9fc15ee04275cd2fbca1f3dccba1e3
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Jan 10 15:31:29 2011 -0800

    kernel - Do a better job with the filesystem background sync
    
    * Adjust code for MNT_LAZY, MNT_NOWAIT, and MNT_WAITOK to reflect
      the fact that they are three different flags and not enumeration
      constants.
    
    * HAMMER now sets VMSC_ONEPASS for MNT_LAZY syncs (background filesystem
      sync).  This generally reduces instances where the background sync
      winds up running continuously when heavy filesystem ops saturate
      the disk.  Fewer vnodes dirtied after the sync is initiated will get
      caught up in the sync.

Summary of changes:
 sys/kern/vfs_subr.c              |   13 ++++++++++++-
 sys/kern/vfs_sync.c              |    4 ++--
 sys/kern/vfs_syscalls.c          |    2 +-
 sys/sys/mount.h                  |    6 +++---
 sys/vfs/gnu/ext2fs/ext2_vfsops.c |    4 ++--
 sys/vfs/gnu/ext2fs/ext2_vnops.c  |    2 +-
 sys/vfs/hammer/hammer_ondisk.c   |   15 ++++++++++++---
 sys/vfs/msdosfs/msdosfs_vfsops.c |    4 ++--
 sys/vfs/nfs/nfs_vfsops.c         |    2 +-
 sys/vfs/nwfs/nwfs_vfsops.c       |    2 +-
 sys/vfs/smbfs/smbfs_vfsops.c     |    2 +-
 sys/vfs/ufs/ffs_softdep.c        |   18 +++++++++---------
 sys/vfs/ufs/ffs_vfsops.c         |    2 +-
 13 files changed, 48 insertions(+), 28 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/28271622aa9fc15ee04275cd2fbca1f3dccba1e3


-- 
DragonFly BSD source repository



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