kernel - Rejigger mount code to add vfs_flags in struct vfsops
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Feb 2020 23:58:22 +0000 (15:58 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Feb 2020 23:58:22 +0000 (15:58 -0800)
commit00369c4a0b9b0df5cb692c2b5cf096f5a5a83727
tree9d9ece3cd1d3c4508bd3d85ea3821c97fe68e70d
parentfb9a513650cb43ec79fc3e0320c27fa94532f4d5
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).
25 files changed:
sys/gnu/vfs/ext2fs/ext2_vfsops.c
sys/kern/vfs_conf.c
sys/kern/vfs_mount.c
sys/kern/vfs_sync.c
sys/kern/vfs_syscalls.c
sys/sys/mount.h
sys/sys/vnode.h
sys/vfs/autofs/autofs_vfsops.c
sys/vfs/devfs/devfs_vfsops.c
sys/vfs/dirfs/dirfs_vfsops.c
sys/vfs/fuse/fuse_vfsops.c
sys/vfs/hammer/hammer_vfsops.c
sys/vfs/hammer2/hammer2_vfsops.c
sys/vfs/hpfs/hpfs_vfsops.c
sys/vfs/isofs/cd9660/cd9660_vfsops.c
sys/vfs/mfs/mfs_vfsops.c
sys/vfs/msdosfs/msdosfs_vfsops.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/ntfs/ntfs_vfsops.c
sys/vfs/nullfs/null_vfsops.c
sys/vfs/procfs/procfs_vfsops.c
sys/vfs/smbfs/smbfs_vfsops.c
sys/vfs/tmpfs/tmpfs_vfsops.c
sys/vfs/udf/udf_vfsops.c
sys/vfs/ufs/ffs_vfsops.c