git: tmpfs - Cleanup, refactor tmpfs_alloc_vp()
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Feb 23 12:08:47 PST 2020
commit a44ecf5cff5e78c606454d7c0e55bbdaa0305bb3
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/a44ecf5cff5e78c606454d7c0e55bbdaa0305bb3
--
DragonFly BSD source repository
More information about the Commits
mailing list