vfs: use mutexes for locking

This commit is contained in:
Matheus
2023-07-26 20:29:40 -03:00
parent d77d7b9b3e
commit 49eef0e04c
8 changed files with 12 additions and 19 deletions
+1 -5
View File
@@ -530,11 +530,7 @@ static tmpfsnode_t *newnode(vfs_t *vfs, int type) {
node->attr.type = type;
node->attr.inode = ++((tmpfs_t *)vfs)->inodenumber;
node->vnode.type = type;
node->vnode.refcount = 1;
SPINLOCK_INIT(node->vnode.lock);
node->vnode.ops = &vnops;
node->vnode.vfs = vfs;
VOP_INIT(&node->vnode, &vnops, 0, type, vfs);
return node;
}