From 3b8b63bf133e855d942abb67de931ce08b7a4452 Mon Sep 17 00:00:00 2001
From: dzwdz
Date: Tue, 20 Sep 2022 23:35:33 +0200
Subject: shared: rename ufs_request to better fit its role in userland

The old name could have suggested that it held a response to a request
received by fs_wait. The new name is unfortunately very similar to
the `struct vfs_request` already used internally in the kernel, but
it's better at conveying that it contains a filesystem request yet to
be handled.

vfs_request - virtual filesystem request (a bad name in hindsight)
ufs_request - user filesystem request
---
 src/shared/include/camellia/syscalls.h | 2 +-
 src/shared/include/camellia/types.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/shared/include')

diff --git a/src/shared/include/camellia/syscalls.h b/src/shared/include/camellia/syscalls.h
index 2450fff..f9e3832 100644
--- a/src/shared/include/camellia/syscalls.h
+++ b/src/shared/include/camellia/syscalls.h
@@ -61,7 +61,7 @@ long _syscall_getsize(handle_t h);
 long _syscall_remove(handle_t h);
 long _syscall_close(handle_t h);
 
-handle_t _syscall_fs_wait(char __user *buf, long max_len, struct fs_wait_response __user *res);
+handle_t _syscall_fs_wait(char __user *buf, long max_len, struct ufs_request __user *res);
 long _syscall_fs_respond(handle_t hid, const void __user *buf, long ret, int flags);
 
 /** Modifies the virtual address space.
diff --git a/src/shared/include/camellia/types.h b/src/shared/include/camellia/types.h
index 4f6ab1d..be34783 100644
--- a/src/shared/include/camellia/types.h
+++ b/src/shared/include/camellia/types.h
@@ -22,7 +22,7 @@ enum vfs_operation {
 	VFSOP_CLOSE,
 };
 
-struct fs_wait_response {
+struct ufs_request {
 	enum vfs_operation op;
 	size_t len; // how much was put in *buf
 	size_t capacity; // how much output can be accepted by the caller
-- 
cgit v1.2.3