Manage RIDs via id_alloc
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s

This commit is contained in:
2026-02-22 21:09:06 +01:00
parent 084809ac99
commit 62a6543dab
9 changed files with 97 additions and 55 deletions

View File

@@ -100,6 +100,12 @@ int vfs_open (struct procgroup* procgroup, const char* mountpoint, const char* p
int id = handle->id = id_alloc (&procgroup->vfs_handle_id_alloc);
if (id < 0) {
free (handle);
spin_unlock (&procgroup->lock);
return -ST_OOM_ERROR;
}
rbtree_insert (struct vfs_handle, &procgroup->vfs_handle_tree, &handle->handle_tree_link,
handle_tree_link, id);