git: kernel - Rejigger mount code to add vfs_flags in struct vfsops

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Feb 14 16:12:12 PST 2020


commit 00369c4a0b9b0df5cb692c2b5cf096f5a5a83727
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Feb 14 15:58:22 2020 -0800

    kernel - Rejigger mount code to add vfs_flags in struct vfsops
    
    * Rejigger the mount code so we can add a vfs_flags field to vfsops,
      which mount_init() has visibility to.
    
    * Allows nullfs to flag that its mounts do not need a syncer thread.
      Previously nullfs would destroy the syncer thread after the
      fact.
    
    * Improves dsynth performance (it does lots of nullfs mounts).

Summary of changes:
 sys/gnu/vfs/ext2fs/ext2_vfsops.c     |  1 +
 sys/kern/vfs_conf.c                  |  3 +--
 sys/kern/vfs_mount.c                 | 37 +++++++++++++++++++++++-------------
 sys/kern/vfs_sync.c                  | 11 ++++++++---
 sys/kern/vfs_syscalls.c              |  3 +--
 sys/sys/mount.h                      |  4 ++++
 sys/sys/vnode.h                      |  3 ++-
 sys/vfs/autofs/autofs_vfsops.c       |  1 +
 sys/vfs/devfs/devfs_vfsops.c         |  1 +
 sys/vfs/dirfs/dirfs_vfsops.c         |  1 +
 sys/vfs/fuse/fuse_vfsops.c           |  1 +
 sys/vfs/hammer/hammer_vfsops.c       |  1 +
 sys/vfs/hammer2/hammer2_vfsops.c     |  1 +
 sys/vfs/hpfs/hpfs_vfsops.c           |  1 +
 sys/vfs/isofs/cd9660/cd9660_vfsops.c |  1 +
 sys/vfs/mfs/mfs_vfsops.c             |  1 +
 sys/vfs/msdosfs/msdosfs_vfsops.c     |  1 +
 sys/vfs/nfs/nfs_vfsops.c             |  1 +
 sys/vfs/ntfs/ntfs_vfsops.c           |  1 +
 sys/vfs/nullfs/null_vfsops.c         |  7 +++----
 sys/vfs/procfs/procfs_vfsops.c       |  1 +
 sys/vfs/smbfs/smbfs_vfsops.c         |  1 +
 sys/vfs/tmpfs/tmpfs_vfsops.c         |  1 +
 sys/vfs/udf/udf_vfsops.c             |  1 +
 sys/vfs/ufs/ffs_vfsops.c             |  1 +
 25 files changed, 61 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/00369c4a0b9b0df5cb692c2b5cf096f5a5a83727


-- 
DragonFly BSD source repository



More information about the Commits mailing list