aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2015-04-15 20:16:31 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2015-04-15 20:16:31 +0000
commitdda11d4ab9d40ef61f88b04a2e5decd00a871ef0 (patch)
treebbc578ff440927019e13de747fa3256b9df8b2d7 /sys/sys/mount.h
parent3b65fbe4d12039cce61ba8d0d90f06d42356ae6a (diff)
downloadsrc-dda11d4ab9d40ef61f88b04a2e5decd00a871ef0.tar.gz
src-dda11d4ab9d40ef61f88b04a2e5decd00a871ef0.zip
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. Reviewed by: kib MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=281562
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 6fb2d08187b7..b1678457fa7e 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -355,6 +355,7 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNTK_LOOKUP_EXCL_DOTDOT 0x00000800
#define MNTK_MARKER 0x00001000
#define MNTK_UNMAPPED_BUFS 0x00002000
+#define MNTK_USES_BCACHE 0x00004000 /* FS uses the buffer cache. */
#define MNTK_NOASYNC 0x00800000 /* disable async */
#define MNTK_UNMOUNT 0x01000000 /* unmount in progress */
#define MNTK_MWAIT 0x02000000 /* waiting for unmount to finish */