From e7d6d031e54ef1b1c7b589648a27eea84994549f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 5 May 2022 18:31:56 +0200 Subject: kernel/vfs: rename the vfsreq funcs, merge vfsreq_finish & vfsreq_cancel --- src/kernel/syscalls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/syscalls.c') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index ca717ae..1e33632 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -66,7 +66,7 @@ handle_t _syscall_open(const char __user *path, int len) { memcpy(path_buf, path_buf + mount->prefix_len, len); } - return vfs_request_create((struct vfs_request) { + return vfsreq_create((struct vfs_request) { .type = VFSOP_OPEN, .input = { .kern = true, @@ -132,7 +132,7 @@ fail: int _syscall_read(handle_t handle_num, void __user *buf, size_t len, int offset) { struct handle *handle = process_handle_get(process_current, handle_num, HANDLE_FILE); if (!handle) return -1; - return vfs_request_create((struct vfs_request) { + return vfsreq_create((struct vfs_request) { .type = VFSOP_READ, .output = { .buf = (userptr_t) buf, @@ -148,7 +148,7 @@ int _syscall_read(handle_t handle_num, void __user *buf, size_t len, int offset) int _syscall_write(handle_t handle_num, const void __user *buf, size_t len, int offset) { struct handle *handle = process_handle_get(process_current, handle_num, HANDLE_FILE); if (!handle) return -1; - return vfs_request_create((struct vfs_request) { + return vfsreq_create((struct vfs_request) { .type = VFSOP_WRITE, .input = { .buf = (userptr_t) buf, @@ -226,7 +226,7 @@ int _syscall_fs_respond(char __user *buf, int ret) { } process_current->handled_req = NULL; - vfs_request_finish(req, ret); + vfsreq_finish(req, ret); return 0; } -- cgit v1.2.3