DragonFly- master sys/vfs/hammer hammer.h hammer_cursor.c hammer_inode.c hammer_vfsops.c hammer_vnops.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 20 19:42:18 PDT 2009

commit 39d8fd636004057de2f4039d0c527e8a5194fb08
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 20 16:53:21 2009 -0700

    HAMER VFS - Cache additional b-tree nodes in directory.
    * Cache inode record cursors in the directory at dip->cache[2] to reduce
      cpu overhead when iterating a directory.
    * Cache file object record cursors in the file's governing directory at
      dip->cache[3] after reading the last data record in a file, to reduce
      cpu overhead when chain-reading files.
    * Also add vfs.hammer.stats_btree_root_iterations, a counter which
      is incremented whenever a B-Tree search is initiated from the root

Summary of changes:
 sys/vfs/hammer/hammer.h        |    6 +++-
 sys/vfs/hammer/hammer_cursor.c |    3 ++
 sys/vfs/hammer/hammer_inode.c  |   65 +++++++++++++++++++++++++++++++++++++--
 sys/vfs/hammer/hammer_vfsops.c |    3 ++
 sys/vfs/hammer/hammer_vnops.c  |   20 ++++++++++++
 5 files changed, 92 insertions(+), 5 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list