git: kernel - Refactor vfs_cache 3/N

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 2 17:29:12 PST 2020


commit 0308135763c687c5040aaa069ec0091145075711
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Feb 27 20:38:58 2020 -0800

    kernel - Refactor vfs_cache 3/N
    
    * Leave the vnode held for each linked namecache entry, allowing us to
      remove all the hold/drop code for 0->1 and 1->0 lock transitions of
      ncps.
    
      This significantly simplifies the cache_lock*() and cache_unlock()
      functions.
    
    * Adjust the vnode recycling code to check v_auxrefs against
      v_namecache_count instead of against 0.

Summary of changes:
 sys/kern/vfs_cache.c | 116 +++------------------------------------------------
 sys/kern/vfs_lock.c  |   8 +++-
 sys/kern/vfs_subr.c  |   7 +++-
 sys/sys/namecache.h  |   1 -
 sys/sys/vnode.h      |   2 +
 5 files changed, 20 insertions(+), 114 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0308135763c687c5040aaa069ec0091145075711


-- 
DragonFly BSD source repository



More information about the Commits mailing list