Volume-centric VFS implementation
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
This commit is contained in:
@@ -151,13 +151,7 @@ struct procgroup* procgroup_create (void) {
|
||||
|
||||
memset (procgroup, 0, sizeof (*procgroup));
|
||||
|
||||
if (!id_alloc_init (&procgroup->vfs_handle_id_alloc, PROCGROUP_VFS_HANDLES_MAX)) {
|
||||
free (procgroup);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!id_alloc_init (&procgroup->rid_alloc, PROCGROUP_RESOURCES_MAX)) {
|
||||
id_alloc_fini (&procgroup->vfs_handle_id_alloc);
|
||||
free (procgroup);
|
||||
return NULL;
|
||||
}
|
||||
@@ -166,7 +160,6 @@ struct procgroup* procgroup_create (void) {
|
||||
|
||||
if (procgroup->pgid < 0) {
|
||||
id_alloc_fini (&procgroup->rid_alloc);
|
||||
id_alloc_fini (&procgroup->vfs_handle_id_alloc);
|
||||
free (procgroup);
|
||||
return NULL;
|
||||
}
|
||||
@@ -178,7 +171,6 @@ struct procgroup* procgroup_create (void) {
|
||||
|
||||
if (proc_create_resource_mail (procgroup) == NULL) {
|
||||
id_alloc_fini (&procgroup->rid_alloc);
|
||||
id_alloc_fini (&procgroup->vfs_handle_id_alloc);
|
||||
free (procgroup);
|
||||
return NULL;
|
||||
}
|
||||
@@ -237,9 +229,6 @@ static void procgroup_delete (struct procgroup* procgroup, struct reschedule_ctx
|
||||
proc_delete_resource (procgroup, resource, rctx);
|
||||
}
|
||||
|
||||
/* unlock VFS owned mountpoints */
|
||||
vfs_procgroup_cleanup (procgroup);
|
||||
|
||||
/* delete mappings */
|
||||
struct list_node_link *mapping_link, *mapping_link_tmp;
|
||||
list_foreach (procgroup->mappings, mapping_link, mapping_link_tmp) {
|
||||
@@ -254,7 +243,6 @@ static void procgroup_delete (struct procgroup* procgroup, struct reschedule_ctx
|
||||
|
||||
free (procgroup->tls.tls_tmpl);
|
||||
|
||||
id_alloc_fini (&procgroup->vfs_handle_id_alloc);
|
||||
id_alloc_fini (&procgroup->rid_alloc);
|
||||
id_free (&pgid_alloc, procgroup->pgid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user