Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 10:01:30 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/conf files src/sys/sys vnode.h src/sys/kern vfs_hash.c
Message-ID:  <200503141001.j2EA1UT2042801@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2005-03-14 10:01:30 UTC

  FreeBSD src repository

  Modified files:
    sys/conf             files 
    sys/sys              vnode.h 
  Added files:
    sys/kern             vfs_hash.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.1005    +1 -0      src/sys/conf/files
  1.1       +184 -0    src/sys/kern/vfs_hash.c (new)
  1.289     +12 -0     src/sys/sys/vnode.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503141001.j2EA1UT2042801>