]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC of 281677:
authormckusick <mckusick@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Sep 2015 00:43:05 +0000 (00:43 +0000)
committermckusick <mckusick@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Sep 2015 00:43:05 +0000 (00:43 +0000)
commit3a3dd71e03e352148134ebfd02a7f15723ffab6d
tree67df2a0e32a73c0beb0b999eafad85e89cae31e4
parent40818e60abd56b547dcb899b6da4fde0e0fe7eea
MFC of 281677:

More accurately collect name-cache statistics in sysctl functions
sysctl_debug_hashstat_nchash() and sysctl_debug_hashstat_rawnchash().
These changes are in preparation for allowing changes in the size
of the vnode hash tables driven by increases and decreases in the
maximum number of vnodes in the system.

Reviewed by: kib@
Phabric:     D2265

MFC of 287497:

Track changes to kern.maxvnodes and appropriately increase or decrease
the size of the name cache hash table (mapping file names to vnodes)
and the vnode hash table (mapping mount point and inode number to vnode).
An appropriate locking strategy is the key to changing hash table sizes
while they are in active use.

Reviewed by: kib
Tested by:   Peter Holm
Differential Revision: https://reviews.freebsd.org/D2265

git-svn-id: svn://svn.freebsd.org/base/stable/10@288079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_cache.c
sys/kern/vfs_hash.c
sys/kern/vfs_subr.c
sys/sys/vnode.h