aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/nullfs/null.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-01-03 19:17:57 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-01-03 19:17:57 +0000
commit9cf4c952caa443733ad3b44fa274a2018a94f5f5 (patch)
treeb40d81bb8b27a27e533ff513285113179bcc22d8 /sys/fs/nullfs/null.h
parent0dcbedfa61fed70410ee9d491c96ee1ec024d0b3 (diff)
downloadsrc-9cf4c952caa443733ad3b44fa274a2018a94f5f5.tar.gz
src-9cf4c952caa443733ad3b44fa274a2018a94f5f5.zip
Add the "nocache" nullfs mount option, which disables the caching of
the free nullfs vnodes, switching nullfs behaviour to pre-r240285. The option is mostly intended as the last-resort when higher pressure on the vnode cache due to doubling of the vnode counts is not desirable. Note that disabling the cache costs more than 2x wall time in the metadata-hungry scenarious. The default is "cache". Tested and benchmarked by: pho (previous version) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=245004
Diffstat (limited to 'sys/fs/nullfs/null.h')
-rw-r--r--sys/fs/nullfs/null.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null.h b/sys/fs/nullfs/null.h
index 0878e559329d..4f37020d6da5 100644
--- a/sys/fs/nullfs/null.h
+++ b/sys/fs/nullfs/null.h
@@ -34,9 +34,15 @@
* $FreeBSD$
*/
+#ifndef FS_NULL_H
+#define FS_NULL_H
+
+#define NULLM_CACHE 0x0001
+
struct null_mount {
struct mount *nullm_vfs;
struct vnode *nullm_rootvp; /* Reference to root null_node */
+ uint64_t nullm_flags;
};
#ifdef _KERNEL
@@ -80,3 +86,5 @@ MALLOC_DECLARE(M_NULLFSNODE);
#endif /* NULLFS_DEBUG */
#endif /* _KERNEL */
+
+#endif