diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2013-01-03 19:17:57 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2013-01-03 19:17:57 +0000 |
commit | 9cf4c952caa443733ad3b44fa274a2018a94f5f5 (patch) | |
tree | b40d81bb8b27a27e533ff513285113179bcc22d8 /sys/fs/nullfs/null.h | |
parent | 0dcbedfa61fed70410ee9d491c96ee1ec024d0b3 (diff) | |
download | src-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.h | 8 |
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 |