file: cleanfile

This commit is contained in:
Matheus
2023-05-10 20:43:36 -03:00
parent f985051d87
commit 70c5e992cc
+3 -1
View File
@@ -33,7 +33,9 @@ static file_t* newfile() {
}
static void cleanfile(file_t *file) {
__assert(!"UNIMPLEMENTED");
vfs_close(file->vnode, fileflagstovnodeflags(file->flags));
VOP_RELEASE(file->vnode);
slab_free(filecache, file);
}
file_t *fd_get(int fd) {