From 749a079f9538c168c7a9adf03d919f00f09546fb Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Apr 2022 20:04:52 +0200 Subject: kernel/vfs: refactor `vfs_request_accept` into `vfs_backend_accept` handling the backend queue makes more sense here than in the syscall implementation. it's also just overall cleaner --- src/kernel/vfs/request.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/vfs/request.h') diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index 1e3ef60..c6f714d 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -45,7 +45,8 @@ struct vfs_request { /** Assigns the vfs_request to the caller, and dispatches the call */ int vfs_request_create(struct vfs_request); -int vfs_request_accept(struct vfs_request *); +/** Try to accept an enqueued request */ +int vfs_backend_accept(struct vfs_backend *); int vfs_request_finish(struct vfs_request *, int ret); void vfs_request_cancel(struct vfs_request *, int ret); -- cgit v1.2.3