git: kernel - Make UFS ihash table per-mount

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 10 14:57:55 PST 2012


commit f0accfd0be644e06d9ca3f5202198aeafcea60a9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Dec 10 14:55:59 2012 -0800

    kernel - Make UFS ihash table per-mount
    
    * Make the UFS ihash table per-mount.
    
    * Scale down the size of the hash table a bit so we have ~4 inodes per
      bucket instead of ~1.  Works fine for a single mount and this way
      multiple UFS mounts don't make [as] bloated kmalloc calls.
    
    Submitted-by: vsrinivas

Summary of changes:
 sys/vfs/ufs/ffs_alloc.c   |    8 +++-
 sys/vfs/ufs/ffs_softdep.c |    7 +++-
 sys/vfs/ufs/ffs_vfsops.c  |   24 +++++-------
 sys/vfs/ufs/ufs_extern.h  |   14 ++++----
 sys/vfs/ufs/ufs_ihash.c   |   84 +++++++++++++++++---------------------------
 sys/vfs/ufs/ufs_inode.c   |    5 ++-
 sys/vfs/ufs/ufs_vfsops.c  |    1 -
 sys/vfs/ufs/ufsmount.h    |   11 ++----
 8 files changed, 68 insertions(+), 86 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f0accfd0be644e06d9ca3f5202198aeafcea60a9


-- 
DragonFly BSD source repository


More information about the Commits mailing list