summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-03-14 10:01:29 +0000
committerphk <phk@FreeBSD.org>2005-03-14 10:01:29 +0000
commitc15976e56bf6ceee6977cb68cb28dbb4dec6bbd9 (patch)
treea502d92b8c74fd2651cffcc1795c4feb98f9dbf2 /sys/kern/subr_autoconf.c
parent3fcb9112fb1915c98e275295e779c38aa7a0b32a (diff)
downloadFreeBSD-src-c15976e56bf6ceee6977cb68cb28dbb4dec6bbd9.zip
FreeBSD-src-c15976e56bf6ceee6977cb68cb28dbb4dec6bbd9.tar.gz
Currently (almost) all filesystems maintain a local inode hash table
to get from (mount + inode) to vnode. These tables are mostly copy&pasted from UFS, sized based on desiredvnodes and therefore quite large (128K-512K). Several filesystems are buggy enough that they allocate the hash table even before they know if they will ever be used or not. Add "vfs_hash", a system wide hash table, which will replace all the per-filesystem hash-tables. The fields we add to struct vnode will more or less be saved in the respective filesystems inodes. Having one central implementation will save code and will allow us to justify the complexity of code to dynamically (re)size the hash at a later point.
Diffstat (limited to 'sys/kern/subr_autoconf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud