aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2019-10-13 15:40:34 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2019-10-13 15:40:34 +0000
commitd1cbf3eeea671a36a16f1606e4d68f78d8708608 (patch)
tree6dac740f54cefab7f41b0f81e3dad9e40068557f /sys/sys/mount.h
parent737241cd517d646ed112d96067650aa13a639891 (diff)
downloadsrc-d1cbf3eeea671a36a16f1606e4d68f78d8708608.tar.gz
src-d1cbf3eeea671a36a16f1606e4d68f78d8708608.zip
vfs: add MNTK_NOMSYNC
On many filesystems the traversal is effectively a no-op. Add a way to avoid the overhead. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22009
Notes
Notes: svn path=/head/; revision=353469
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 e9cdd63e37fc..53a776454bcd 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -396,6 +396,7 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNTK_UNMOUNTF 0x00000001 /* forced unmount in progress */
#define MNTK_ASYNC 0x00000002 /* filtered async flag */
#define MNTK_SOFTDEP 0x00000004 /* async disabled by softdep */
+#define MNTK_NOMSYNC 0x00000008 /* don't do vfs_msync */
#define MNTK_DRAINING 0x00000010 /* lock draining is happening */
#define MNTK_REFEXPIRE 0x00000020 /* refcount expiring is happening */
#define MNTK_EXTENDED_SHARED 0x00000040 /* Allow shared locking for more ops */