Remove VFS object reference counting
This commit is contained in:
@ -107,13 +107,7 @@ VfsObj *vfs_open(char *mountpoint, const char *path, uint32_t flags) {
|
||||
}
|
||||
|
||||
void vfs_close(VfsObj *vobj) {
|
||||
if (vobj->refs < 0) {
|
||||
return;
|
||||
}
|
||||
vobj->refs--;
|
||||
if (vobj->refs == 0) {
|
||||
vobj->cleanup(vobj);
|
||||
}
|
||||
vobj->cleanup(vobj);
|
||||
}
|
||||
|
||||
void vfs_init(void) {
|
||||
|
Reference in New Issue
Block a user