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 -3
View File
@@ -331,9 +331,7 @@ static vops_t vnops = {
static void ctor(scache_t *cache, void *obj) {
devnode_t *node = obj;
memset(node, 0, sizeof(devnode_t));
node->vnode.refcount = 1;
SPINLOCK_INIT(node->vnode.lock);
node->vnode.ops = &vnops;
VOP_INIT(&node->vnode, &vnops, 0, 0, NULL)
node->attr.inode = ++currentinode;
}