tmpfs: handle inode number properly

This commit is contained in:
Matheus
2023-05-01 19:22:02 -03:00
parent 9ab2ad5095
commit 442c527174
+1
View File
@@ -384,6 +384,7 @@ static tmpfsnode_t *newnode(vfs_t *vfs, int type) {
memset(&node->attr, 0, sizeof(vattr_t));
node->attr.type = type;
node->attr.inode = ((tmpfs_t *)vfs)->inodenumber++;
node->vnode.type = type;
node->vnode.refcount = 1;
SPINLOCK_INIT(node->vnode.lock);