aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-11-27 09:20:58 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-11-27 09:20:58 +0000
commitabc1515601d7edf96e03ff1fcfff8af56183d9eb (patch)
treec33bb2a8c231e821fec183eb13fbe2c315f0076f /sys/sys/mount.h
parent590cb3c761759cbd36214d6248383567df1dc9cc (diff)
downloadsrc-abc1515601d7edf96e03ff1fcfff8af56183d9eb.tar.gz
src-abc1515601d7edf96e03ff1fcfff8af56183d9eb.zip
NFSv4 client tracks opens, and the track records are only dropped when
the vnode is inactivated. This contradicts with the nullfs caching which keeps upper vnode around, as consequence keeping the use reference to lower vnode. Add a filesystem flag to request nullfs to not cache when mounted over that filesystem, and set the flag for nfs v4 mounts. Reported by: asomers Reviewed by: rmacklem Tested by: asomers, rmacklem Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=309209
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 94cabb6c241b..b6f9fec39407 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -370,7 +370,8 @@ void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *);
#define MNTK_SUSPEND 0x08000000 /* request write suspension */
#define MNTK_SUSPEND2 0x04000000 /* block secondary writes */
#define MNTK_SUSPENDED 0x10000000 /* write operations are suspended */
-#define MNTK_UNUSED1 0x20000000
+#define MNTK_NULL_NOCACHE 0x20000000 /* auto disable cache for nullfs
+ mounts over this fs */
#define MNTK_LOOKUP_SHARED 0x40000000 /* FS supports shared lock lookups */
#define MNTK_NOKNOTE 0x80000000 /* Don't send KNOTEs from VOP hooks */