git: DragonFly_RELEASE_5_8 tmpfs - Cleanup, refactor tmpfs_alloc_vp()

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 23 12:10:01 PST 2020


commit e5dfb6a11320ce8bc312d542e46b4c4ad598f456
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 22 10:48:50 2020 -0800

    tmpfs - Cleanup, refactor tmpfs_alloc_vp()
    
    * Refactor tmpfs_alloc_vp() to handle races without having to have
      a weird intermediate TMPFS_VNODE_ALLOCATING state.  This also
      removes the related ALLOCATING/WAIT code which had a totally broken
      tsleep() call in it.
    
    * Properly zero fields in tmpfs_alloc_node().
    
    * Cleanup some comments

Summary of changes:
 sys/vfs/tmpfs/tmpfs.h        | 10 +++----
 sys/vfs/tmpfs/tmpfs_subr.c   | 67 +++++++++++++++++---------------------------
 sys/vfs/tmpfs/tmpfs_vfsops.c |  2 +-
 sys/vfs/tmpfs/tmpfs_vnops.c  | 10 ++-----
 4 files changed, 34 insertions(+), 55 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e5dfb6a11320ce8bc312d542e46b4c4ad598f456


-- 
DragonFly BSD source repository


More information about the Commits mailing list