vfs: redo locking

This commit is contained in:
Matheus
2024-08-26 21:47:23 -03:00
parent da150523ba
commit 42bda0bf92
32 changed files with 271 additions and 169 deletions
+2
View File
@@ -35,7 +35,9 @@ syscallret_t syscall_getdents(context_t *, int dirfd, void *ubuffer, size_t read
}
size_t offset = fd->offset;
VOP_LOCK(fd->vnode);
ret.errno = VOP_GETDENTS(fd->vnode, buffer, count, offset, &ret.ret);
VOP_UNLOCK(fd->vnode);
if (ret.errno)
goto cleanup;