git: kernel - Add cache_isopen()

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Dec 12 09:07:15 PST 2013


commit 1ddc3e8fce96bda7791bef79520bf60de8cd88e5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Dec 12 09:06:01 2013 -0800

    kernel - Add cache_isopen()
    
    * Add cache_isopen(), a function which nominally returns whether the
      file referenced by a namecache structure is active (opened or mmapped).
    
      The code currently just checks the ref-count on the underlying vnode
      if it is present, which should be sufficient.
    
    * Used by HAMMER2.

Summary of changes:
 sys/kern/vfs_cache.c | 23 ++++++++++++++++++++++-
 sys/sys/namecache.h  |  1 +
 2 files changed, 23 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ddc3e8fce96bda7791bef79520bf60de8cd88e5


-- 
DragonFly BSD source repository


More information about the Commits mailing list