git: kernel - Add cache_isopen()

Matthew Dillon dillon at
Thu Dec 12 09:07:15 PST 2013

commit 1ddc3e8fce96bda7791bef79520bf60de8cd88e5
Author: Matthew Dillon <dillon at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list