kernel - Add cache_isopen()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 Dec 2013 17:06:01 +0000 (09:06 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 Dec 2013 17:06:01 +0000 (09:06 -0800)
commit1ddc3e8fce96bda7791bef79520bf60de8cd88e5
treeca18c3e5c6169376ccabbbe7159fead98fe0f669
parent65ec5030159591e86acf127d2f5deadd18311213
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.
sys/kern/vfs_cache.c
sys/sys/namecache.h