]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r281562
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Apr 2015 12:39:24 +0000 (12:39 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 30 Apr 2015 12:39:24 +0000 (12:39 +0000)
commit0b16435657c940b034056123dbc0f820df337809
tree2eddb41071be4a6cf55f2041a43ee90ffc63440a
parent52f1969670f4e0ce2e45200a970e5ede810eb608
MFC: r281562
File systems that do not use the buffer cache (such as ZFS) must
use VOP_FSYNC() to perform the NFS server's Commit operation.
This patch adds a mnt_kern_flag called MNTK_USES_BCACHE which
is set by file systems that use the buffer cache. If this flag
is not set, the NFS server always does a VOP_FSYNC().
This should be ok for old file system modules that do not set
MNTK_USES_BCACHE, since calling VOP_FSYNC() is correct, although
it might not be optimal for file systems that use the buffer cache.

git-svn-id: svn://svn.freebsd.org/base/stable/10@282270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/ext2fs/ext2_vfsops.c
sys/fs/fuse/fuse_vfsops.c
sys/fs/msdosfs/msdosfs_vfsops.c
sys/fs/nandfs/nandfs_vfsops.c
sys/fs/nfsclient/nfs_clvfsops.c
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nullfs/null_vfsops.c
sys/kern/vfs_subr.c
sys/sys/mount.h
sys/ufs/ffs/ffs_vfsops.c